Interface IamPolicySearchResult.ExplanationOrBuilder (3.6.0)

Stay organized with collections Save and categorize content based on your preferences.
public static interface IamPolicySearchResult.ExplanationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsMatchedPermissions(String key)

public abstract boolean containsMatchedPermissions(String key)

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getMatchedPermissions()

public abstract Map<String,IamPolicySearchResult.Explanation.Permissions> getMatchedPermissions()
Returns
TypeDescription
Map<String,Permissions>

getMatchedPermissionsCount()

public abstract int getMatchedPermissionsCount()

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Returns
TypeDescription
int

getMatchedPermissionsMap()

public abstract Map<String,IamPolicySearchResult.Explanation.Permissions> getMatchedPermissionsMap()

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Returns
TypeDescription
Map<String,Permissions>

getMatchedPermissionsOrDefault(String key, IamPolicySearchResult.Explanation.Permissions defaultValue)

public abstract IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrDefault(String key, IamPolicySearchResult.Explanation.Permissions defaultValue)

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Parameters
NameDescription
keyString
defaultValueIamPolicySearchResult.Explanation.Permissions
Returns
TypeDescription
IamPolicySearchResult.Explanation.Permissions

getMatchedPermissionsOrThrow(String key)

public abstract IamPolicySearchResult.Explanation.Permissions getMatchedPermissionsOrThrow(String key)

The map from roles to their included permissions that match the permission query (i.e., a query containing policy.role.permissions:). Example: if query policy.role.permissions:compute.disk.get matches a policy binding that contains owner role, the matched_permissions will be {"roles/owner": ["compute.disk.get"]}. The roles can also be found in the returned policy bindings. Note that the map is populated only for requests with permission queries.

map<string, .google.cloud.asset.v1.IamPolicySearchResult.Explanation.Permissions> matched_permissions = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
IamPolicySearchResult.Explanation.Permissions