Class IAMAccessPoliciesImpl
java.lang.Object
com.eqixiac.equinix.iam.client.implementation.IAMAccessPoliciesImpl
- All Implemented Interfaces:
IAMAccessPolicies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGrant(String projectId, String accessPolicyId, AddGrantRequest request) Adds a grant to an access policy.create(String projectId, CreateAccessPolicyRequest request) Creates a new access policy in a project.Deletes an access policy.Disables an access policy.Enables a previously disabled access policy.Retrieves a single access policy by id.Lists the access policies of a project (first page).Lists the access policies of a project, controlling pagination.listGrants(String projectId, String accessPolicyId) Lists the grants of an access policy (first page).listGrants(String projectId, String accessPolicyId, String pageToken, Integer pageSize) Lists the grants of an access policy, controlling pagination.removeGrant(String projectId, String accessPolicyId, String grantId) Removes a grant from an access policy.update(String projectId, String accessPolicyId, UpdateAccessPolicyRequest request) Updates an access policy.
-
Constructor Details
-
IAMAccessPoliciesImpl
public IAMAccessPoliciesImpl()
-
-
Method Details
-
list
Description copied from interface:IAMAccessPoliciesLists the access policies of a project (first page).- Specified by:
listin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))- Returns:
- the first page of access policies
-
list
Description copied from interface:IAMAccessPoliciesLists the access policies of a project, controlling pagination.- Specified by:
listin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))pageToken- the opaque page token from a prior response, ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server default- Returns:
- the requested page of access policies
-
create
Description copied from interface:IAMAccessPoliciesCreates a new access policy in a project.- Specified by:
createin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))request- the access policy to create- Returns:
- the created access policy
-
getByUuid
Description copied from interface:IAMAccessPoliciesRetrieves a single access policy by id.- Specified by:
getByUuidin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifier- Returns:
- the matching access policy
-
update
public AccessPolicy update(String projectId, String accessPolicyId, UpdateAccessPolicyRequest request) Description copied from interface:IAMAccessPoliciesUpdates an access policy.- Specified by:
updatein interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifierrequest- the update (the request'slastRevguards against concurrent updates)- Returns:
- the updated access policy
-
delete
Description copied from interface:IAMAccessPoliciesDeletes an access policy.The spec requires the policy's last-known revision in the request body for optimistic-concurrency-controlled deletion.
- Specified by:
deletein interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifierlastRev- the last-known revision of the policy (required; fromAccessPolicy.getRev())- Returns:
trueif the deletion request was accepted
-
enable
Description copied from interface:IAMAccessPoliciesEnables a previously disabled access policy.- Specified by:
enablein interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifierlastRev- the last-known revision of the policy (for concurrency control), ornull- Returns:
- the updated access policy
-
disable
Description copied from interface:IAMAccessPoliciesDisables an access policy.- Specified by:
disablein interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifierlastRev- the last-known revision of the policy (for concurrency control), ornull- Returns:
- the updated access policy
-
listGrants
Description copied from interface:IAMAccessPoliciesLists the grants of an access policy (first page).- Specified by:
listGrantsin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifier- Returns:
- the first page of grants
-
listGrants
public AccessPolicyGrantList listGrants(String projectId, String accessPolicyId, String pageToken, Integer pageSize) Description copied from interface:IAMAccessPoliciesLists the grants of an access policy, controlling pagination.- Specified by:
listGrantsin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifierpageToken- the opaque page token from a prior response, ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server default- Returns:
- the requested page of grants
-
addGrant
Description copied from interface:IAMAccessPoliciesAdds a grant to an access policy.- Specified by:
addGrantin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifierrequest- the grant to add (the grantee and optionallastRev)- Returns:
- the created grant
-
removeGrant
Description copied from interface:IAMAccessPoliciesRemoves a grant from an access policy.- Specified by:
removeGrantin interfaceIAMAccessPolicies- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))accessPolicyId- the access policy identifiergrantId- the grant identifier- Returns:
trueif the removal request was accepted
-