Skip to main content
Package: com.coinbase.cdp.resources.policyengine

Constructor Details

PolicyEngineClient

Parameters: clientOptions - ClientOptions

Method Details

withRawResponse

Get responses with HTTP metadata like headers Returns: WithRawResponsePolicyEngineClient

listPolicies

Overload 1
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Returns: ListPoliciesResponse Overload 2
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Parameters: request - ListPoliciesRequest Returns: ListPoliciesResponse Overload 3
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Parameters: requestOptions - RequestOptions Returns: ListPoliciesResponse Overload 4
Lists the policies belonging to the developer’s CDP Project. Use the scope parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. Parameters: request - ListPoliciesRequest requestOptions - RequestOptions Returns: ListPoliciesResponse

createPolicy

Overload 1
Create a policy that can be used to govern the behavior of accounts. Parameters: request - CreatePolicyRequest Returns: Policy Overload 2
Create a policy that can be used to govern the behavior of accounts. Parameters: request - CreatePolicyRequest requestOptions - RequestOptions Returns: Policy

getPolicyById

Overload 1
Get a policy by its ID. Parameters: policyId - String Returns: Policy Overload 2
Get a policy by its ID. Parameters: policyId - String request - GetPolicyByIdRequest Returns: Policy Overload 3
Get a policy by its ID. Parameters: policyId - String requestOptions - RequestOptions Returns: Policy Overload 4
Get a policy by its ID. Parameters: policyId - String request - GetPolicyByIdRequest requestOptions - RequestOptions Returns: Policy

updatePolicy

Overload 1
Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it. Parameters: policyId - String request - UpdatePolicyRequest Returns: Policy Overload 2
Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it. Parameters: policyId - String request - UpdatePolicyRequest requestOptions - RequestOptions Returns: Policy

deletePolicy

Overload 1
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String Returns: void Overload 2
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String request - DeletePolicyRequest Returns: void Overload 3
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String requestOptions - RequestOptions Returns: void Overload 4
Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. Parameters: policyId - String request - DeletePolicyRequest requestOptions - RequestOptions Returns: void