com.oracle.bmc.fleetappsmanagement.FleetAppsManagementAdminAsyncClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oci-java-sdk-fleetappsmanagement Show documentation
Show all versions of oci-java-sdk-fleetappsmanagement Show documentation
This project contains the SDK used for Oracle Cloud Infrastructure Fleet Apps Management
/**
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.fleetappsmanagement;
import com.oracle.bmc.util.internal.Validate;
import com.oracle.bmc.fleetappsmanagement.requests.*;
import com.oracle.bmc.fleetappsmanagement.responses.*;
import java.util.Objects;
/**
* Async client implementation for FleetAppsManagementAdmin service.
* There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response
* to the call is an {@link java.io.InputStream}, like getObject Api in object storage service,
* developers need to process the stream in AsyncHandler, and not anywhere else, because the stream
* will be closed right after the AsyncHandler is invoked.
* 2. Use Java Future: using Java Future, developers need to close the stream after they are done
* with the Java Future.
* Accessing the result should be done in a mutually exclusive manner, either through the Future or
* the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the
* AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine
* whether or not the request was completed via Future.isDone/isCancelled.
* Please refer to
* https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
*/
@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230831")
public class FleetAppsManagementAdminAsyncClient
extends com.oracle.bmc.http.internal.BaseAsyncClient
implements FleetAppsManagementAdminAsync {
/** Service instance for FleetAppsManagementAdmin. */
public static final com.oracle.bmc.Service SERVICE =
com.oracle.bmc.Services.serviceBuilder()
.serviceName("FLEETAPPSMANAGEMENTADMIN")
.serviceEndpointPrefix("")
.serviceEndpointTemplate("https://fams.{region}.oci.{secondLevelDomain}")
.build();
private static final org.slf4j.Logger LOG =
org.slf4j.LoggerFactory.getLogger(FleetAppsManagementAdminAsyncClient.class);
FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.common.ClientBuilderBase, ?> builder,
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
authenticationDetailsProvider) {
super(builder, authenticationDetailsProvider);
}
/**
* Create a builder for this client.
*
* @return builder
*/
public static Builder builder() {
return new Builder(SERVICE);
}
/**
* Builder class for this client. The "authenticationDetailsProvider" is required and must be
* passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method.
*/
public static class Builder
extends com.oracle.bmc.common.RegionalClientBuilder<
Builder, FleetAppsManagementAdminAsyncClient> {
private Builder(com.oracle.bmc.Service service) {
super(service);
final String packageName = "fleetappsmanagement";
com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName);
requestSignerFactory =
new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory(
com.oracle.bmc.http.signing.SigningStrategy.STANDARD);
}
/**
* Build the client.
*
* @param authenticationDetailsProvider authentication details provider
* @return the client
*/
public FleetAppsManagementAdminAsyncClient build(
@jakarta.annotation.Nonnull
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
authenticationDetailsProvider) {
return new FleetAppsManagementAdminAsyncClient(this, authenticationDetailsProvider);
}
}
@Override
public void setRegion(com.oracle.bmc.Region region) {
super.setRegion(region);
}
@Override
public void setRegion(String regionId) {
super.setRegion(regionId);
}
@Override
public java.util.concurrent.Future
createCompliancePolicyRule(
CreateCompliancePolicyRuleRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateCompliancePolicyRuleRequest,
CreateCompliancePolicyRuleResponse>
handler) {
Objects.requireNonNull(
request.getCreateCompliancePolicyRuleDetails(),
"createCompliancePolicyRuleDetails is required");
return clientCall(request, CreateCompliancePolicyRuleResponse::builder)
.logger(LOG, "createCompliancePolicyRule")
.serviceDetails(
"FleetAppsManagementAdmin",
"CreateCompliancePolicyRule",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/CreateCompliancePolicyRule")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateCompliancePolicyRuleRequest::builder)
.basePath("/20230831")
.appendPathParam("compliancePolicyRules")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.CompliancePolicyRule.class,
CreateCompliancePolicyRuleResponse.Builder::compliancePolicyRule)
.handleResponseHeaderString(
"location", CreateCompliancePolicyRuleResponse.Builder::location)
.handleResponseHeaderString(
"content-location",
CreateCompliancePolicyRuleResponse.Builder::contentLocation)
.handleResponseHeaderString(
"etag", CreateCompliancePolicyRuleResponse.Builder::etag)
.handleResponseHeaderString(
"opc-work-request-id",
CreateCompliancePolicyRuleResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", CreateCompliancePolicyRuleResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future createOnboarding(
CreateOnboardingRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreateOnboardingRequest, CreateOnboardingResponse>
handler) {
Objects.requireNonNull(
request.getCreateOnboardingDetails(), "createOnboardingDetails is required");
return clientCall(request, CreateOnboardingResponse::builder)
.logger(LOG, "createOnboarding")
.serviceDetails(
"FleetAppsManagementAdmin",
"CreateOnboarding",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/CreateOnboarding")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateOnboardingRequest::builder)
.basePath("/20230831")
.appendPathParam("Onboardings")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.Onboarding.class,
CreateOnboardingResponse.Builder::onboarding)
.handleResponseHeaderString("location", CreateOnboardingResponse.Builder::location)
.handleResponseHeaderString(
"content-location", CreateOnboardingResponse.Builder::contentLocation)
.handleResponseHeaderString("etag", CreateOnboardingResponse.Builder::etag)
.handleResponseHeaderString(
"opc-work-request-id", CreateOnboardingResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", CreateOnboardingResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future
createPlatformConfiguration(
CreatePlatformConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreatePlatformConfigurationRequest,
CreatePlatformConfigurationResponse>
handler) {
Objects.requireNonNull(
request.getCreatePlatformConfigurationDetails(),
"createPlatformConfigurationDetails is required");
return clientCall(request, CreatePlatformConfigurationResponse::builder)
.logger(LOG, "createPlatformConfiguration")
.serviceDetails(
"FleetAppsManagementAdmin",
"CreatePlatformConfiguration",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/CreatePlatformConfiguration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreatePlatformConfigurationRequest::builder)
.basePath("/20230831")
.appendPathParam("platformConfigurations")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.PlatformConfiguration.class,
CreatePlatformConfigurationResponse.Builder::platformConfiguration)
.handleResponseHeaderString(
"etag", CreatePlatformConfigurationResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreatePlatformConfigurationResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future createProperty(
CreatePropertyRequest request,
final com.oracle.bmc.responses.AsyncHandler<
CreatePropertyRequest, CreatePropertyResponse>
handler) {
Objects.requireNonNull(
request.getCreatePropertyDetails(), "createPropertyDetails is required");
return clientCall(request, CreatePropertyResponse::builder)
.logger(LOG, "createProperty")
.serviceDetails(
"FleetAppsManagementAdmin",
"CreateProperty",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/CreateProperty")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreatePropertyRequest::builder)
.basePath("/20230831")
.appendPathParam("properties")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.Property.class,
CreatePropertyResponse.Builder::property)
.handleResponseHeaderString("etag", CreatePropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", CreatePropertyResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future
deleteCompliancePolicyRule(
DeleteCompliancePolicyRuleRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteCompliancePolicyRuleRequest,
DeleteCompliancePolicyRuleResponse>
handler) {
Validate.notBlank(
request.getCompliancePolicyRuleId(), "compliancePolicyRuleId must not be blank");
return clientCall(request, DeleteCompliancePolicyRuleResponse::builder)
.logger(LOG, "deleteCompliancePolicyRule")
.serviceDetails(
"FleetAppsManagementAdmin",
"DeleteCompliancePolicyRule",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/DeleteCompliancePolicyRule")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteCompliancePolicyRuleRequest::builder)
.basePath("/20230831")
.appendPathParam("compliancePolicyRules")
.appendPathParam(request.getCompliancePolicyRuleId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-work-request-id",
DeleteCompliancePolicyRuleResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", DeleteCompliancePolicyRuleResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future deleteOnboarding(
DeleteOnboardingRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeleteOnboardingRequest, DeleteOnboardingResponse>
handler) {
Validate.notBlank(request.getOnboardingId(), "onboardingId must not be blank");
return clientCall(request, DeleteOnboardingResponse::builder)
.logger(LOG, "deleteOnboarding")
.serviceDetails(
"FleetAppsManagementAdmin",
"DeleteOnboarding",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/DeleteOnboarding")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteOnboardingRequest::builder)
.basePath("/20230831")
.appendPathParam("Onboardings")
.appendPathParam(request.getOnboardingId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-work-request-id", DeleteOnboardingResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", DeleteOnboardingResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future
deletePlatformConfiguration(
DeletePlatformConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeletePlatformConfigurationRequest,
DeletePlatformConfigurationResponse>
handler) {
Validate.notBlank(
request.getPlatformConfigurationId(), "platformConfigurationId must not be blank");
return clientCall(request, DeletePlatformConfigurationResponse::builder)
.logger(LOG, "deletePlatformConfiguration")
.serviceDetails(
"FleetAppsManagementAdmin",
"DeletePlatformConfiguration",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/DeletePlatformConfiguration")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeletePlatformConfigurationRequest::builder)
.basePath("/20230831")
.appendPathParam("platformConfigurations")
.appendPathParam(request.getPlatformConfigurationId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-work-request-id",
DeletePlatformConfigurationResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", DeletePlatformConfigurationResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future deleteProperty(
DeletePropertyRequest request,
final com.oracle.bmc.responses.AsyncHandler<
DeletePropertyRequest, DeletePropertyResponse>
handler) {
Validate.notBlank(request.getPropertyId(), "propertyId must not be blank");
return clientCall(request, DeletePropertyResponse::builder)
.logger(LOG, "deleteProperty")
.serviceDetails(
"FleetAppsManagementAdmin",
"DeleteProperty",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/DeleteProperty")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeletePropertyRequest::builder)
.basePath("/20230831")
.appendPathParam("properties")
.appendPathParam(request.getPropertyId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleResponseHeaderString(
"opc-request-id", DeletePropertyResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future enableLatestPolicy(
EnableLatestPolicyRequest request,
final com.oracle.bmc.responses.AsyncHandler<
EnableLatestPolicyRequest, EnableLatestPolicyResponse>
handler) {
Validate.notBlank(request.getOnboardingId(), "onboardingId must not be blank");
Objects.requireNonNull(
request.getEnableLatestPolicyDetails(), "enableLatestPolicyDetails is required");
return clientCall(request, EnableLatestPolicyResponse::builder)
.logger(LOG, "enableLatestPolicy")
.serviceDetails(
"FleetAppsManagementAdmin",
"EnableLatestPolicy",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/EnableLatestPolicy")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(EnableLatestPolicyRequest::builder)
.basePath("/20230831")
.appendPathParam("Onboardings")
.appendPathParam(request.getOnboardingId())
.appendPathParam("actions")
.appendPathParam("enableLatestPolicy")
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleResponseHeaderString(
"opc-request-id", EnableLatestPolicyResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future getCompliancePolicy(
GetCompliancePolicyRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetCompliancePolicyRequest, GetCompliancePolicyResponse>
handler) {
Validate.notBlank(request.getCompliancePolicyId(), "compliancePolicyId must not be blank");
return clientCall(request, GetCompliancePolicyResponse::builder)
.logger(LOG, "getCompliancePolicy")
.serviceDetails(
"FleetAppsManagementAdmin",
"GetCompliancePolicy",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicy/GetCompliancePolicy")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetCompliancePolicyRequest::builder)
.basePath("/20230831")
.appendPathParam("compliancePolicies")
.appendPathParam(request.getCompliancePolicyId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.CompliancePolicy.class,
GetCompliancePolicyResponse.Builder::compliancePolicy)
.handleResponseHeaderString("etag", GetCompliancePolicyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetCompliancePolicyResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future getCompliancePolicyRule(
GetCompliancePolicyRuleRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetCompliancePolicyRuleRequest, GetCompliancePolicyRuleResponse>
handler) {
Validate.notBlank(
request.getCompliancePolicyRuleId(), "compliancePolicyRuleId must not be blank");
return clientCall(request, GetCompliancePolicyRuleResponse::builder)
.logger(LOG, "getCompliancePolicyRule")
.serviceDetails(
"FleetAppsManagementAdmin",
"GetCompliancePolicyRule",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/GetCompliancePolicyRule")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetCompliancePolicyRuleRequest::builder)
.basePath("/20230831")
.appendPathParam("compliancePolicyRules")
.appendPathParam(request.getCompliancePolicyRuleId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.CompliancePolicyRule.class,
GetCompliancePolicyRuleResponse.Builder::compliancePolicyRule)
.handleResponseHeaderString("etag", GetCompliancePolicyRuleResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetCompliancePolicyRuleResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future getOnboarding(
GetOnboardingRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
Validate.notBlank(request.getOnboardingId(), "onboardingId must not be blank");
return clientCall(request, GetOnboardingResponse::builder)
.logger(LOG, "getOnboarding")
.serviceDetails(
"FleetAppsManagementAdmin",
"GetOnboarding",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/GetOnboarding")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetOnboardingRequest::builder)
.basePath("/20230831")
.appendPathParam("Onboardings")
.appendPathParam(request.getOnboardingId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.Onboarding.class,
GetOnboardingResponse.Builder::onboarding)
.handleResponseHeaderString("etag", GetOnboardingResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetOnboardingResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future getPlatformConfiguration(
GetPlatformConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
GetPlatformConfigurationRequest, GetPlatformConfigurationResponse>
handler) {
Validate.notBlank(
request.getPlatformConfigurationId(), "platformConfigurationId must not be blank");
return clientCall(request, GetPlatformConfigurationResponse::builder)
.logger(LOG, "getPlatformConfiguration")
.serviceDetails(
"FleetAppsManagementAdmin",
"GetPlatformConfiguration",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/GetPlatformConfiguration")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetPlatformConfigurationRequest::builder)
.basePath("/20230831")
.appendPathParam("platformConfigurations")
.appendPathParam(request.getPlatformConfigurationId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.PlatformConfiguration.class,
GetPlatformConfigurationResponse.Builder::platformConfiguration)
.handleResponseHeaderString("etag", GetPlatformConfigurationResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetPlatformConfigurationResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future getProperty(
GetPropertyRequest request,
final com.oracle.bmc.responses.AsyncHandler
handler) {
Validate.notBlank(request.getPropertyId(), "propertyId must not be blank");
return clientCall(request, GetPropertyResponse::builder)
.logger(LOG, "getProperty")
.serviceDetails(
"FleetAppsManagementAdmin",
"GetProperty",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/GetProperty")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetPropertyRequest::builder)
.basePath("/20230831")
.appendPathParam("properties")
.appendPathParam(request.getPropertyId())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.Property.class,
GetPropertyResponse.Builder::property)
.handleResponseHeaderString("etag", GetPropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", GetPropertyResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future listCompliancePolicies(
ListCompliancePoliciesRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListCompliancePoliciesRequest, ListCompliancePoliciesResponse>
handler) {
return clientCall(request, ListCompliancePoliciesResponse::builder)
.logger(LOG, "listCompliancePolicies")
.serviceDetails(
"FleetAppsManagementAdmin",
"ListCompliancePolicies",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyCollection/ListCompliancePolicies")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListCompliancePoliciesRequest::builder)
.basePath("/20230831")
.appendPathParam("compliancePolicies")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("id", request.getId())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.CompliancePolicyCollection.class,
ListCompliancePoliciesResponse.Builder::compliancePolicyCollection)
.handleResponseHeaderString(
"opc-request-id", ListCompliancePoliciesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListCompliancePoliciesResponse.Builder::opcNextPage)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future listCompliancePolicyRules(
ListCompliancePolicyRulesRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListCompliancePolicyRulesRequest, ListCompliancePolicyRulesResponse>
handler) {
return clientCall(request, ListCompliancePolicyRulesResponse::builder)
.logger(LOG, "listCompliancePolicyRules")
.serviceDetails(
"FleetAppsManagementAdmin",
"ListCompliancePolicyRules",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRuleCollection/ListCompliancePolicyRules")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListCompliancePolicyRulesRequest::builder)
.basePath("/20230831")
.appendPathParam("compliancePolicyRules")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("displayName", request.getDisplayName())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("patchName", request.getPatchName())
.appendQueryParam("compliancePolicyId", request.getCompliancePolicyId())
.appendQueryParam("id", request.getId())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.CompliancePolicyRuleCollection
.class,
ListCompliancePolicyRulesResponse.Builder::compliancePolicyRuleCollection)
.handleResponseHeaderString(
"opc-request-id", ListCompliancePolicyRulesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListCompliancePolicyRulesResponse.Builder::opcNextPage)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future listOnboardingPolicies(
ListOnboardingPoliciesRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListOnboardingPoliciesRequest, ListOnboardingPoliciesResponse>
handler) {
return clientCall(request, ListOnboardingPoliciesResponse::builder)
.logger(LOG, "listOnboardingPolicies")
.serviceDetails(
"FleetAppsManagementAdmin",
"ListOnboardingPolicies",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingPolicyCollection/ListOnboardingPolicies")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListOnboardingPoliciesRequest::builder)
.basePath("/20230831")
.appendPathParam("OnboardingPolicies")
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.OnboardingPolicyCollection.class,
ListOnboardingPoliciesResponse.Builder::onboardingPolicyCollection)
.handleResponseHeaderString(
"opc-request-id", ListOnboardingPoliciesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListOnboardingPoliciesResponse.Builder::opcNextPage)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future listOnboardings(
ListOnboardingsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListOnboardingsRequest, ListOnboardingsResponse>
handler) {
return clientCall(request, ListOnboardingsResponse::builder)
.logger(LOG, "listOnboardings")
.serviceDetails(
"FleetAppsManagementAdmin",
"ListOnboardings",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingCollection/ListOnboardings")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListOnboardingsRequest::builder)
.basePath("/20230831")
.appendPathParam("Onboardings")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("id", request.getId())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.OnboardingCollection.class,
ListOnboardingsResponse.Builder::onboardingCollection)
.handleResponseHeaderString(
"opc-request-id", ListOnboardingsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListOnboardingsResponse.Builder::opcNextPage)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future
listPlatformConfigurations(
ListPlatformConfigurationsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListPlatformConfigurationsRequest,
ListPlatformConfigurationsResponse>
handler) {
return clientCall(request, ListPlatformConfigurationsResponse::builder)
.logger(LOG, "listPlatformConfigurations")
.serviceDetails(
"FleetAppsManagementAdmin",
"ListPlatformConfigurations",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfigurationCollection/ListPlatformConfigurations")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListPlatformConfigurationsRequest::builder)
.basePath("/20230831")
.appendPathParam("platformConfigurations")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("id", request.getId())
.appendEnumQueryParam("configCategory", request.getConfigCategory())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.PlatformConfigurationCollection
.class,
ListPlatformConfigurationsResponse.Builder::platformConfigurationCollection)
.handleResponseHeaderString(
"opc-request-id", ListPlatformConfigurationsResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListPlatformConfigurationsResponse.Builder::opcNextPage)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future listProperties(
ListPropertiesRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ListPropertiesRequest, ListPropertiesResponse>
handler) {
return clientCall(request, ListPropertiesResponse::builder)
.logger(LOG, "listProperties")
.serviceDetails(
"FleetAppsManagementAdmin",
"ListProperties",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PropertyCollection/ListProperties")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListPropertiesRequest::builder)
.basePath("/20230831")
.appendPathParam("properties")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendEnumQueryParam("lifecycleState", request.getLifecycleState())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("id", request.getId())
.appendEnumQueryParam("scope", request.getScope())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendEnumQueryParam("sortBy", request.getSortBy())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.PropertyCollection.class,
ListPropertiesResponse.Builder::propertyCollection)
.handleResponseHeaderString(
"opc-request-id", ListPropertiesResponse.Builder::opcRequestId)
.handleResponseHeaderString(
"opc-next-page", ListPropertiesResponse.Builder::opcNextPage)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future manageSettings(
ManageSettingsRequest request,
final com.oracle.bmc.responses.AsyncHandler<
ManageSettingsRequest, ManageSettingsResponse>
handler) {
Validate.notBlank(request.getOnboardingId(), "onboardingId must not be blank");
Objects.requireNonNull(
request.getManageSettingsDetails(), "manageSettingsDetails is required");
return clientCall(request, ManageSettingsResponse::builder)
.logger(LOG, "manageSettings")
.serviceDetails(
"FleetAppsManagementAdmin",
"ManageSettings",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/ManageSettings")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ManageSettingsRequest::builder)
.basePath("/20230831")
.appendPathParam("Onboardings")
.appendPathParam(request.getOnboardingId())
.appendPathParam("actions")
.appendPathParam("manageSettings")
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.appendHeader("opc-retry-token", request.getOpcRetryToken())
.hasBody()
.handleResponseHeaderString(
"opc-request-id", ManageSettingsResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future
updateCompliancePolicyRule(
UpdateCompliancePolicyRuleRequest request,
final com.oracle.bmc.responses.AsyncHandler<
UpdateCompliancePolicyRuleRequest,
UpdateCompliancePolicyRuleResponse>
handler) {
Validate.notBlank(
request.getCompliancePolicyRuleId(), "compliancePolicyRuleId must not be blank");
Objects.requireNonNull(
request.getUpdateCompliancePolicyRuleDetails(),
"updateCompliancePolicyRuleDetails is required");
return clientCall(request, UpdateCompliancePolicyRuleResponse::builder)
.logger(LOG, "updateCompliancePolicyRule")
.serviceDetails(
"FleetAppsManagementAdmin",
"UpdateCompliancePolicyRule",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/UpdateCompliancePolicyRule")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateCompliancePolicyRuleRequest::builder)
.basePath("/20230831")
.appendPathParam("compliancePolicyRules")
.appendPathParam(request.getCompliancePolicyRuleId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id",
UpdateCompliancePolicyRuleResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", UpdateCompliancePolicyRuleResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future updateOnboarding(
UpdateOnboardingRequest request,
final com.oracle.bmc.responses.AsyncHandler<
UpdateOnboardingRequest, UpdateOnboardingResponse>
handler) {
Validate.notBlank(request.getOnboardingId(), "onboardingId must not be blank");
Objects.requireNonNull(
request.getUpdateOnboardingDetails(), "updateOnboardingDetails is required");
return clientCall(request, UpdateOnboardingResponse::builder)
.logger(LOG, "updateOnboarding")
.serviceDetails(
"FleetAppsManagementAdmin",
"UpdateOnboarding",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/UpdateOnboarding")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateOnboardingRequest::builder)
.basePath("/20230831")
.appendPathParam("Onboardings")
.appendPathParam(request.getOnboardingId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id", UpdateOnboardingResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", UpdateOnboardingResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future
updatePlatformConfiguration(
UpdatePlatformConfigurationRequest request,
final com.oracle.bmc.responses.AsyncHandler<
UpdatePlatformConfigurationRequest,
UpdatePlatformConfigurationResponse>
handler) {
Validate.notBlank(
request.getPlatformConfigurationId(), "platformConfigurationId must not be blank");
Objects.requireNonNull(
request.getUpdatePlatformConfigurationDetails(),
"updatePlatformConfigurationDetails is required");
return clientCall(request, UpdatePlatformConfigurationResponse::builder)
.logger(LOG, "updatePlatformConfiguration")
.serviceDetails(
"FleetAppsManagementAdmin",
"UpdatePlatformConfiguration",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/UpdatePlatformConfiguration")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdatePlatformConfigurationRequest::builder)
.basePath("/20230831")
.appendPathParam("platformConfigurations")
.appendPathParam(request.getPlatformConfigurationId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleResponseHeaderString(
"opc-work-request-id",
UpdatePlatformConfigurationResponse.Builder::opcWorkRequestId)
.handleResponseHeaderString(
"opc-request-id", UpdatePlatformConfigurationResponse.Builder::opcRequestId)
.callAsync(handler);
}
@Override
public java.util.concurrent.Future updateProperty(
UpdatePropertyRequest request,
final com.oracle.bmc.responses.AsyncHandler<
UpdatePropertyRequest, UpdatePropertyResponse>
handler) {
Validate.notBlank(request.getPropertyId(), "propertyId must not be blank");
Objects.requireNonNull(
request.getUpdatePropertyDetails(), "updatePropertyDetails is required");
return clientCall(request, UpdatePropertyResponse::builder)
.logger(LOG, "updateProperty")
.serviceDetails(
"FleetAppsManagementAdmin",
"UpdateProperty",
"https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/UpdateProperty")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdatePropertyRequest::builder)
.basePath("/20230831")
.appendPathParam("properties")
.appendPathParam(request.getPropertyId())
.accept("application/json")
.appendHeader("if-match", request.getIfMatch())
.appendHeader("opc-request-id", request.getOpcRequestId())
.hasBody()
.handleBody(
com.oracle.bmc.fleetappsmanagement.model.Property.class,
UpdatePropertyResponse.Builder::property)
.handleResponseHeaderString("etag", UpdatePropertyResponse.Builder::etag)
.handleResponseHeaderString(
"opc-request-id", UpdatePropertyResponse.Builder::opcRequestId)
.callAsync(handler);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) {
this(builder(), authenticationDetailsProvider);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration) {
this(builder().configuration(configuration), authenticationDetailsProvider);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator) {
this(
builder().configuration(configuration).clientConfigurator(clientConfigurator),
authenticationDetailsProvider);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory),
authenticationDetailsProvider);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @param additionalClientConfigurators {@link Builder#additionalClientConfigurators}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.List additionalClientConfigurators) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory)
.additionalClientConfigurators(additionalClientConfigurators),
authenticationDetailsProvider);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @param additionalClientConfigurators {@link Builder#additionalClientConfigurators}
* @param endpoint {@link Builder#endpoint}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.List additionalClientConfigurators,
String endpoint) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory)
.additionalClientConfigurators(additionalClientConfigurators)
.endpoint(endpoint),
authenticationDetailsProvider);
}
/**
* Create a new client instance.
*
* @param authenticationDetailsProvider The authentication details (see {@link Builder#build})
* @param configuration {@link Builder#configuration}
* @param clientConfigurator {@link Builder#clientConfigurator}
* @param defaultRequestSignerFactory {@link Builder#requestSignerFactory}
* @param additionalClientConfigurators {@link Builder#additionalClientConfigurators}
* @param endpoint {@link Builder#endpoint}
* @param signingStrategyRequestSignerFactories {@link
* Builder#signingStrategyRequestSignerFactories}
* @deprecated Use the {@link #builder() builder} instead.
*/
@Deprecated
public FleetAppsManagementAdminAsyncClient(
com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
com.oracle.bmc.ClientConfiguration configuration,
com.oracle.bmc.http.ClientConfigurator clientConfigurator,
com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory,
java.util.Map<
com.oracle.bmc.http.signing.SigningStrategy,
com.oracle.bmc.http.signing.RequestSignerFactory>
signingStrategyRequestSignerFactories,
java.util.List additionalClientConfigurators,
String endpoint) {
this(
builder()
.configuration(configuration)
.clientConfigurator(clientConfigurator)
.requestSignerFactory(defaultRequestSignerFactory)
.additionalClientConfigurators(additionalClientConfigurators)
.endpoint(endpoint)
.signingStrategyRequestSignerFactories(
signingStrategyRequestSignerFactories),
authenticationDetailsProvider);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy