Search in sources :

Example 31 with Domain

use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.

the class WeblogicApi method createWebLogicOracleV1NamespacedDomainAsync.

/**
 * (asynchronously) create a Domain
 *
 * @param namespace
 *          object name and auth scope, such as for teams and projects
 *          (required)
 * @param body
 *          (required)
 * @param pretty
 *          If 'true', then the output is pretty printed. (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 createWebLogicOracleV1NamespacedDomainAsync(String namespace, Domain body, String pretty, final ApiCallback<Domain> callback) throws ApiException {
    ProgressResponseBody.ProgressListener progressListener = null;
    ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
    if (callback != null) {
        progressListener = (bytesRead, contentLength, done) -> callback.onDownloadProgress(bytesRead, contentLength, done);
        progressRequestListener = (bytesWritten, contentLength, done) -> callback.onUploadProgress(bytesWritten, contentLength, done);
    }
    com.squareup.okhttp.Call call = createWebLogicOracleV1NamespacedDomainValidateBeforeCall(namespace, body, pretty, progressListener, progressRequestListener);
    Type localVarReturnType = new TypeToken<Domain>() {
    }.getType();
    apiClient.executeAsync(call, localVarReturnType, callback);
    return call;
}
Also used : Type(java.lang.reflect.Type) ProgressResponseBody(io.kubernetes.client.ProgressResponseBody) Domain(oracle.kubernetes.weblogic.domain.v1.Domain) ProgressRequestBody(io.kubernetes.client.ProgressRequestBody)

Example 32 with Domain

use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.

the class WeblogicApi method readWebLogicOracleV1NamespacedDomainStatusWithHttpInfo.

/**
 * read status of the specified Domain
 *
 * @param name
 *          name of the Domain (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)
 * @return ApiResponse&lt;Domain&gt;
 * @throws ApiException
 *           If fail to call the API, e.g. server error or cannot deserialize
 *           the response body
 */
public ApiResponse<Domain> readWebLogicOracleV1NamespacedDomainStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException {
    com.squareup.okhttp.Call call = readWebLogicOracleV1NamespacedDomainStatusValidateBeforeCall(name, namespace, pretty, null, null);
    Type localVarReturnType = new TypeToken<Domain>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType);
}
Also used : Type(java.lang.reflect.Type) Domain(oracle.kubernetes.weblogic.domain.v1.Domain)

Example 33 with Domain

use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.

the class WeblogicApi method createWebLogicOracleV1NamespacedDomainWithHttpInfo.

/**
 * create a Domain
 *
 * @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)
 * @return ApiResponse&lt;Domain&gt;
 * @throws ApiException
 *           If fail to call the API, e.g. server error or cannot deserialize
 *           the response body
 */
public ApiResponse<Domain> createWebLogicOracleV1NamespacedDomainWithHttpInfo(String namespace, Domain body, String pretty) throws ApiException {
    com.squareup.okhttp.Call call = createWebLogicOracleV1NamespacedDomainValidateBeforeCall(namespace, body, pretty, null, null);
    Type localVarReturnType = new TypeToken<Domain>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType);
}
Also used : Type(java.lang.reflect.Type) Domain(oracle.kubernetes.weblogic.domain.v1.Domain)

Example 34 with Domain

use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.

the class WeblogicApi method patchWebLogicOracleV1NamespacedDomainWithHttpInfo.

/**
 * partially update the specified Domain
 *
 * @param name
 *          name of the Domain (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)
 * @return ApiResponse&lt;Domain&gt;
 * @throws ApiException
 *           If fail to call the API, e.g. server error or cannot deserialize
 *           the response body
 */
public ApiResponse<Domain> patchWebLogicOracleV1NamespacedDomainWithHttpInfo(String name, String namespace, Patch body, String pretty) throws ApiException {
    com.squareup.okhttp.Call call = patchWebLogicOracleV1NamespacedDomainValidateBeforeCall(name, namespace, body, pretty, null, null);
    Type localVarReturnType = new TypeToken<Domain>() {
    }.getType();
    return apiClient.execute(call, localVarReturnType);
}
Also used : Type(java.lang.reflect.Type) Domain(oracle.kubernetes.weblogic.domain.v1.Domain)

Example 35 with Domain

use of com.microsoft.applicationinsights.smoketest.schemav2.Domain in project weblogic-kubernetes-operator by oracle.

the class WeblogicApi method replaceWebLogicOracleV1NamespacedDomainStatusAsync.

/**
 * (asynchronously) replace status of the specified Domain
 *
 * @param name
 *          name of the Domain (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 callback
 *          The callback to be executed when 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 replaceWebLogicOracleV1NamespacedDomainStatusAsync(String name, String namespace, Domain body, String pretty, final ApiCallback<Domain> callback) throws ApiException {
    ProgressResponseBody.ProgressListener progressListener = null;
    ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
    if (callback != null) {
        progressListener = (bytesRead, contentLength, done) -> callback.onDownloadProgress(bytesRead, contentLength, done);
        progressRequestListener = (bytesWritten, contentLength, done) -> callback.onUploadProgress(bytesWritten, contentLength, done);
    }
    com.squareup.okhttp.Call call = replaceWebLogicOracleV1NamespacedDomainStatusValidateBeforeCall(name, namespace, body, pretty, progressListener, progressRequestListener);
    Type localVarReturnType = new TypeToken<Domain>() {
    }.getType();
    apiClient.executeAsync(call, localVarReturnType, callback);
    return call;
}
Also used : Type(java.lang.reflect.Type) ProgressResponseBody(io.kubernetes.client.ProgressResponseBody) Domain(oracle.kubernetes.weblogic.domain.v1.Domain) ProgressRequestBody(io.kubernetes.client.ProgressRequestBody)

Aggregations

Domain (oracle.kubernetes.weblogic.domain.v1.Domain)33 Type (java.lang.reflect.Type)14 Domain (org.openstack4j.model.identity.v3.Domain)10 ProgressRequestBody (io.kubernetes.client.ProgressRequestBody)7 ProgressResponseBody (io.kubernetes.client.ProgressResponseBody)7 DomainSpec (oracle.kubernetes.weblogic.domain.v1.DomainSpec)7 ArrayList (java.util.ArrayList)6 Test (org.junit.Test)5 V1ObjectMeta (io.kubernetes.client.models.V1ObjectMeta)4 Map (java.util.Map)4 ApiException (io.kubernetes.client.ApiException)3 V1Service (io.kubernetes.client.models.V1Service)3 HashMap (java.util.HashMap)3 CallBuilderFactory (oracle.kubernetes.operator.helpers.CallBuilderFactory)3 Packet (oracle.kubernetes.operator.work.Packet)3 HttpUserAgentTest (com.meterware.pseudoserver.HttpUserAgentTest)2 Data (com.microsoft.applicationinsights.smoketest.schemav2.Data)2 Envelope (com.microsoft.applicationinsights.smoketest.schemav2.Envelope)2 MessageData (com.microsoft.applicationinsights.smoketest.schemav2.MessageData)2 V1ConfigMap (io.kubernetes.client.models.V1ConfigMap)2