use of org.openstack4j.model.identity.v3.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 'true', then the output is pretty printed. (optional)
* @return ApiResponse<Domain>
* @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);
}
use of org.openstack4j.model.identity.v3.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 'true', then the output is pretty printed. (optional)
* @return ApiResponse<Domain>
* @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);
}
use of org.openstack4j.model.identity.v3.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 '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 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;
}
use of org.openstack4j.model.identity.v3.Domain in project weblogic-kubernetes-operator by oracle.
the class WeblogicApi method patchWebLogicOracleV1NamespacedDomainStatusWithHttpInfo.
/**
* partially update 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 'true', then the output is pretty printed. (optional)
* @return ApiResponse<Domain>
* @throws ApiException
* If fail to call the API, e.g. server error or cannot deserialize
* the response body
*/
public ApiResponse<Domain> patchWebLogicOracleV1NamespacedDomainStatusWithHttpInfo(String name, String namespace, Patch body, String pretty) throws ApiException {
com.squareup.okhttp.Call call = patchWebLogicOracleV1NamespacedDomainStatusValidateBeforeCall(name, namespace, body, pretty, null, null);
Type localVarReturnType = new TypeToken<Domain>() {
}.getType();
return apiClient.execute(call, localVarReturnType);
}
use of org.openstack4j.model.identity.v3.Domain in project weblogic-kubernetes-operator by oracle.
the class RestBackendImpl method getDomainUIDs.
/**
* {@inheritDoc}
*/
@Override
public Set<String> getDomainUIDs() {
LOGGER.entering();
authorize(null, Operation.list);
Set<String> result = new TreeSet<>();
List<Domain> domains = getDomainsList();
for (Domain domain : domains) {
result.add(domain.getSpec().getDomainUID());
}
LOGGER.exiting(result);
return result;
}
Aggregations