io.kubernetes.client.openapi.ApiCallback Java Examples

The following examples show how to use io.kubernetes.client.openapi.ApiCallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BatchV2alpha1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCronJob(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCronJob(Async)");
    }
    

    okhttp3.Call localVarCall = deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback);
    return localVarCall;

}
 
Example #2
Source File: AuditregistrationV1alpha1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling replaceAuditSink(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling replaceAuditSink(Async)");
    }
    

    okhttp3.Call localVarCall = replaceAuditSinkCall(name, body, pretty, dryRun, fieldManager, _callback);
    return localVarCall;

}
 
Example #3
Source File: ApiextensionsV1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
private okhttp3.Call patchCustomResourceDefinitionValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, 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 patchCustomResourceDefinition(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling patchCustomResourceDefinition(Async)");
    }
    

    okhttp3.Call localVarCall = patchCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, force, _callback);
    return localVarCall;

}
 
Example #4
Source File: AutoscalingV1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedHorizontalPodAutoscaler(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler(Async)");
    }
    

    okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, _callback);
    return localVarCall;

}
 
Example #5
Source File: AutoscalingV1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedHorizontalPodAutoscaler(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler(Async)");
    }
    

    okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback);
    return localVarCall;

}
 
Example #6
Source File: BatchV1beta1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedCronJob(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCronJob(Async)");
    }
    

    okhttp3.Call localVarCall = deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback);
    return localVarCall;

}
 
Example #7
Source File: AutoscalingV2beta2Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)");
    }
    

    okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback);
    return localVarCall;

}
 
Example #8
Source File: BatchV1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedJob(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling createNamespacedJob(Async)");
    }
    

    okhttp3.Call localVarCall = createNamespacedJobCall(namespace, body, pretty, dryRun, fieldManager, _callback);
    return localVarCall;

}
 
Example #9
Source File: AutoscalingV1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)");
    }
    

    okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback);
    return localVarCall;

}
 
Example #10
Source File: CoordinationV1beta1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, 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 patchNamespacedLease(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedLease(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLease(Async)");
    }
    

    okhttp3.Call localVarCall = patchNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback);
    return localVarCall;

}
 
Example #11
Source File: SettingsV1alpha1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
private okhttp3.Call patchNamespacedPodPresetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, 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 patchNamespacedPodPreset(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodPreset(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodPreset(Async)");
    }
    

    okhttp3.Call localVarCall = patchNamespacedPodPresetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback);
    return localVarCall;

}
 
Example #12
Source File: AuditregistrationV1alpha1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
private okhttp3.Call patchAuditSinkValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, 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 patchAuditSink(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling patchAuditSink(Async)");
    }
    

    okhttp3.Call localVarCall = patchAuditSinkCall(name, body, pretty, dryRun, fieldManager, force, _callback);
    return localVarCall;

}
 
Example #13
Source File: NetworkingV1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling readNamespacedNetworkPolicy(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)");
    }
    

    okhttp3.Call localVarCall = readNamespacedNetworkPolicyCall(name, namespace, pretty, exact, export, _callback);
    return localVarCall;

}
 
Example #14
Source File: NetworkingV1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedNetworkPolicy(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)");
    }
    

    okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback);
    return localVarCall;

}
 
Example #15
Source File: NetworkingV1beta1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedIngressStatus(Async)");
    }
    
    // verify the required parameter 'namespace' is set
    if (namespace == null) {
        throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedIngressStatus(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)");
    }
    

    okhttp3.Call localVarCall = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback);
    return localVarCall;

}
 
Example #16
Source File: NetworkingV1beta1Api.java    From java with Apache License 2.0 6 votes vote down vote up
@SuppressWarnings("rawtypes")
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) {
        throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedIngress(Async)");
    }
    
    // verify the required parameter 'body' is set
    if (body == null) {
        throw new ApiException("Missing the required parameter 'body' when calling createNamespacedIngress(Async)");
    }
    

    okhttp3.Call localVarCall = createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, _callback);
    return localVarCall;

}
 
Example #17
Source File: AuditregistrationV1alpha1Api.java    From java with Apache License 2.0 5 votes vote down vote up
/**
 * Build call for getAPIResources
 * @param _callback Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #18
Source File: DiscoveryV1beta1Api.java    From java with Apache License 2.0 5 votes vote down vote up
/**
 * Build call for getAPIResources
 * @param _callback Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException {
    Object localVarPostBody = null;

    // create path and map variables
    String localVarPath = "/apis/discovery.k8s.io/v1beta1/";

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #19
Source File: AuthorizationV1Api.java    From java with Apache License 2.0 5 votes vote down vote up
/**
 * Build call for getAPIResources
 * @param _callback Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #20
Source File: EventsV1beta1Api.java    From java with Apache License 2.0 5 votes vote down vote up
/**
 * Build call for getAPIResources
 * @param _callback Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #21
Source File: LogsApi.java    From java with Apache License 2.0 5 votes vote down vote up
/**
 * Build call for logFileHandler
 * @param logpath path to the log (required)
 * @param _callback Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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" + "\\}", localVarApiClient.escapeString(logpath.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #22
Source File: AutoscalingV2beta1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for replaceNamespacedHorizontalPodAutoscaler
 * @param name name of the HorizontalPodAutoscaler (required)
 * @param namespace object name and auth scope, such as for teams and projects (required)
 * @param body  (required)
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value 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 Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 201 </td><td> Created </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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" + "\\}", localVarApiClient.escapeString(name.toString()))
        .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    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<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #23
Source File: CertificatesV1beta1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for replaceCertificateSigningRequestStatus
 * @param name name of the CertificateSigningRequest (required)
 * @param body  (required)
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value 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 Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 201 </td><td> Created </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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" + "\\}", localVarApiClient.escapeString(name.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    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<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #24
Source File: AuditregistrationV1alpha1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for readAuditSink
 * @param name name of the AuditSink (required)
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param exact Should the export be exact.  Exact export maintains cluster-specific fields like &#39;Namespace&#39;. 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 Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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" + "\\}", localVarApiClient.escapeString(name.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    if (pretty != null) {
        localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty));
    }

    if (exact != null) {
        localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact));
    }

    if (export != null) {
        localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export));
    }

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #25
Source File: CertificatesV1beta1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for replaceCertificateSigningRequest
 * @param name name of the CertificateSigningRequest (required)
 * @param body  (required)
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value 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 Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 201 </td><td> Created </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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" + "\\}", localVarApiClient.escapeString(name.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    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<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #26
Source File: SettingsV1alpha1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * 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 &#39;true&#39;, then the output is pretty printed. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional)
 * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional)
 * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground. (optional)
 * @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
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 202 </td><td> Accepted </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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" + "\\}", localVarApiClient.escapeString(name.toString()))
        .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    if (pretty != null) {
        localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty));
    }

    if (dryRun != null) {
        localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun));
    }

    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<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #27
Source File: BatchV1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for patchNamespacedJobStatus
 * @param name name of the Job (required)
 * @param namespace object name and auth scope, such as for teams and projects (required)
 * @param body  (required)
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 \&quot;force\&quot; Apply 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 Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
public okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, V1Patch 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" + "\\}", localVarApiClient.escapeString(name.toString()))
        .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    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<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    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", "application/apply-patch+yaml"
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #28
Source File: EventsV1beta1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for createNamespacedEvent
 * @param namespace object name and auth scope, such as for teams and projects (required)
 * @param body  (required)
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value 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 Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 201 </td><td> Created </td><td>  -  </td></tr>
    <tr><td> 202 </td><td> Accepted </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
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" + "\\}", localVarApiClient.escapeString(namespace.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    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<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #29
Source File: SchedulingV1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for deleteCollectionPriorityClass
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;.  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
 * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional)
 * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional)
 * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional)
 * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional)
 * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground. (optional)
 * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional)
 * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional)
 * @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
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, V1DeleteOptions body, final ApiCallback _callback) throws ApiException {
    Object localVarPostBody = body;

    // create path and map variables
    String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses";

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    if (pretty != null) {
        localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty));
    }

    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));
    }

    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
    if (localVarAccept != null) {
        localVarHeaderParams.put("Accept", localVarAccept);
    }

    final String[] localVarContentTypes = {
        
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
 
Example #30
Source File: ApiextensionsV1beta1Api.java    From java with Apache License 2.0 4 votes vote down vote up
/**
 * Build call for patchCustomResourceDefinition
 * @param name name of the CustomResourceDefinition (required)
 * @param body  (required)
 * @param pretty If &#39;true&#39;, then the output is pretty printed. (optional)
 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 \&quot;force\&quot; Apply 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 Callback for upload/download progress
 * @return Call to execute
 * @throws ApiException If fail to serialize the request body object
 * @http.response.details
 <table summary="Response Details" border="1">
    <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
    <tr><td> 200 </td><td> OK </td><td>  -  </td></tr>
    <tr><td> 401 </td><td> Unauthorized </td><td>  -  </td></tr>
 </table>
 */
public okhttp3.Call patchCustomResourceDefinitionCall(String name, V1Patch 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" + "\\}", localVarApiClient.escapeString(name.toString()));

    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
    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<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, String> localVarCookieParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    final String[] localVarAccepts = {
        "application/json", "application/yaml", "application/vnd.kubernetes.protobuf"
    };
    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", "application/apply-patch+yaml"
    };
    final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
    localVarHeaderParams.put("Content-Type", localVarContentType);

    String[] localVarAuthNames = new String[] { "BearerToken" };
    return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}