iampb

package
v1.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AllowAccessState_name = map[int32]string{
		0: "ALLOW_ACCESS_STATE_UNSPECIFIED",
		1: "ALLOW_ACCESS_STATE_GRANTED",
		2: "ALLOW_ACCESS_STATE_NOT_GRANTED",
		3: "ALLOW_ACCESS_STATE_UNKNOWN_CONDITIONAL",
		4: "ALLOW_ACCESS_STATE_UNKNOWN_INFO",
	}
	AllowAccessState_value = map[string]int32{
		"ALLOW_ACCESS_STATE_UNSPECIFIED":         0,
		"ALLOW_ACCESS_STATE_GRANTED":             1,
		"ALLOW_ACCESS_STATE_NOT_GRANTED":         2,
		"ALLOW_ACCESS_STATE_UNKNOWN_CONDITIONAL": 3,
		"ALLOW_ACCESS_STATE_UNKNOWN_INFO":        4,
	}
)

Enum value maps for AllowAccessState.

View Source
var (
	DenyAccessState_name = map[int32]string{
		0: "DENY_ACCESS_STATE_UNSPECIFIED",
		1: "DENY_ACCESS_STATE_DENIED",
		2: "DENY_ACCESS_STATE_NOT_DENIED",
		3: "DENY_ACCESS_STATE_UNKNOWN_CONDITIONAL",
		4: "DENY_ACCESS_STATE_UNKNOWN_INFO",
	}
	DenyAccessState_value = map[string]int32{
		"DENY_ACCESS_STATE_UNSPECIFIED":         0,
		"DENY_ACCESS_STATE_DENIED":              1,
		"DENY_ACCESS_STATE_NOT_DENIED":          2,
		"DENY_ACCESS_STATE_UNKNOWN_CONDITIONAL": 3,
		"DENY_ACCESS_STATE_UNKNOWN_INFO":        4,
	}
)

Enum value maps for DenyAccessState.

View Source
var (
	RolePermissionInclusionState_name = map[int32]string{
		0: "ROLE_PERMISSION_INCLUSION_STATE_UNSPECIFIED",
		1: "ROLE_PERMISSION_INCLUDED",
		2: "ROLE_PERMISSION_NOT_INCLUDED",
		3: "ROLE_PERMISSION_UNKNOWN_INFO",
	}
	RolePermissionInclusionState_value = map[string]int32{
		"ROLE_PERMISSION_INCLUSION_STATE_UNSPECIFIED": 0,
		"ROLE_PERMISSION_INCLUDED":                    1,
		"ROLE_PERMISSION_NOT_INCLUDED":                2,
		"ROLE_PERMISSION_UNKNOWN_INFO":                3,
	}
)

Enum value maps for RolePermissionInclusionState.

View Source
var (
	PermissionPatternMatchingState_name = map[int32]string{
		0: "PERMISSION_PATTERN_MATCHING_STATE_UNSPECIFIED",
		1: "PERMISSION_PATTERN_MATCHED",
		2: "PERMISSION_PATTERN_NOT_MATCHED",
	}
	PermissionPatternMatchingState_value = map[string]int32{
		"PERMISSION_PATTERN_MATCHING_STATE_UNSPECIFIED": 0,
		"PERMISSION_PATTERN_MATCHED":                    1,
		"PERMISSION_PATTERN_NOT_MATCHED":                2,
	}
)

Enum value maps for PermissionPatternMatchingState.

View Source
var (
	MembershipMatchingState_name = map[int32]string{
		0: "MEMBERSHIP_MATCHING_STATE_UNSPECIFIED",
		1: "MEMBERSHIP_MATCHED",
		2: "MEMBERSHIP_NOT_MATCHED",
		3: "MEMBERSHIP_UNKNOWN_INFO",
		4: "MEMBERSHIP_UNKNOWN_UNSUPPORTED",
	}
	MembershipMatchingState_value = map[string]int32{
		"MEMBERSHIP_MATCHING_STATE_UNSPECIFIED": 0,
		"MEMBERSHIP_MATCHED":                    1,
		"MEMBERSHIP_NOT_MATCHED":                2,
		"MEMBERSHIP_UNKNOWN_INFO":               3,
		"MEMBERSHIP_UNKNOWN_UNSUPPORTED":        4,
	}
)

Enum value maps for MembershipMatchingState.

View Source
var (
	HeuristicRelevance_name = map[int32]string{
		0: "HEURISTIC_RELEVANCE_UNSPECIFIED",
		1: "HEURISTIC_RELEVANCE_NORMAL",
		2: "HEURISTIC_RELEVANCE_HIGH",
	}
	HeuristicRelevance_value = map[string]int32{
		"HEURISTIC_RELEVANCE_UNSPECIFIED": 0,
		"HEURISTIC_RELEVANCE_NORMAL":      1,
		"HEURISTIC_RELEVANCE_HIGH":        2,
	}
)

Enum value maps for HeuristicRelevance.

View Source
var (
	TroubleshootIamPolicyResponse_OverallAccessState_name = map[int32]string{
		0: "OVERALL_ACCESS_STATE_UNSPECIFIED",
		1: "CAN_ACCESS",
		2: "CANNOT_ACCESS",
		3: "UNKNOWN_INFO",
		4: "UNKNOWN_CONDITIONAL",
	}
	TroubleshootIamPolicyResponse_OverallAccessState_value = map[string]int32{
		"OVERALL_ACCESS_STATE_UNSPECIFIED": 0,
		"CAN_ACCESS":                       1,
		"CANNOT_ACCESS":                    2,
		"UNKNOWN_INFO":                     3,
		"UNKNOWN_CONDITIONAL":              4,
	}
)

Enum value maps for TroubleshootIamPolicyResponse_OverallAccessState.

View Source
var File_google_cloud_policytroubleshooter_iam_v3_troubleshooter_proto protoreflect.FileDescriptor

Functions

func RegisterPolicyTroubleshooterServer

func RegisterPolicyTroubleshooterServer(s *grpc.Server, srv PolicyTroubleshooterServer)

Types

type AccessTuple

type AccessTuple struct {

	// Required. The email address of the principal whose access you want to
	// check. For example, `alice@example.com` or
	// `my-service-account@my-project.iam.gserviceaccount.com`.
	//
	// The principal must be a Google Account or a service account. Other types of
	// principals are not supported.
	Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
	// Required. The full resource name that identifies the resource. For example,
	// `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
	//
	// For examples of full resource names for Google Cloud services, see
	// https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
	FullResourceName string `protobuf:"bytes,2,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
	// Required. The IAM permission to check for, either in the `v1` permission
	// format or the `v2` permission format.
	//
	// For a complete list of IAM permissions in the `v1` format, see
	// https://cloud.google.com/iam/help/permissions/reference.
	//
	// For a list of IAM permissions in the `v2` format, see
	// https://cloud.google.com/iam/help/deny/supported-permissions.
	//
	// For a complete list of predefined IAM roles and the permissions in each
	// role, see https://cloud.google.com/iam/help/roles/reference.
	Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
	// Output only. The permission that Policy Troubleshooter checked for, in
	// the `v2` format.
	PermissionFqdn string `protobuf:"bytes,4,opt,name=permission_fqdn,json=permissionFqdn,proto3" json:"permission_fqdn,omitempty"`
	// Optional. Additional context for the request, such as the request time or
	// IP address. This context allows Policy Troubleshooter to troubleshoot
	// conditional role bindings and deny rules.
	ConditionContext *ConditionContext `protobuf:"bytes,5,opt,name=condition_context,json=conditionContext,proto3" json:"condition_context,omitempty"`
	// contains filtered or unexported fields
}

Information about the principal, resource, and permission to check.

func (*AccessTuple) Descriptor deprecated

func (*AccessTuple) Descriptor() ([]byte, []int)

Deprecated: Use AccessTuple.ProtoReflect.Descriptor instead.

func (*AccessTuple) GetConditionContext

func (x *AccessTuple) GetConditionContext() *ConditionContext

func (*AccessTuple) GetFullResourceName

func (x *AccessTuple) GetFullResourceName() string

func (*AccessTuple) GetPermission

func (x *AccessTuple) GetPermission() string

func (*AccessTuple) GetPermissionFqdn

func (x *AccessTuple) GetPermissionFqdn() string

func (*AccessTuple) GetPrincipal

func (x *AccessTuple) GetPrincipal() string

func (*AccessTuple) ProtoMessage

func (*AccessTuple) ProtoMessage()

func (*AccessTuple) ProtoReflect

func (x *AccessTuple) ProtoReflect() protoreflect.Message

func (*AccessTuple) Reset

func (x *AccessTuple) Reset()

func (*AccessTuple) String

func (x *AccessTuple) String() string

type AllowAccessState

type AllowAccessState int32

Whether IAM allow policies gives the principal the permission.

const (
	// Not specified.
	AllowAccessState_ALLOW_ACCESS_STATE_UNSPECIFIED AllowAccessState = 0
	// The allow policy gives the principal the permission.
	AllowAccessState_ALLOW_ACCESS_STATE_GRANTED AllowAccessState = 1
	// The allow policy doesn't give the principal the permission.
	AllowAccessState_ALLOW_ACCESS_STATE_NOT_GRANTED AllowAccessState = 2
	// The allow policy gives the principal the permission if a condition
	// expression evaluate to `true`. However, the sender of the request didn't
	// provide enough context for Policy Troubleshooter to evaluate the condition
	// expression.
	AllowAccessState_ALLOW_ACCESS_STATE_UNKNOWN_CONDITIONAL AllowAccessState = 3
	// The sender of the request doesn't have access to all of the allow policies
	// that Policy Troubleshooter needs to evaluate the principal's access.
	AllowAccessState_ALLOW_ACCESS_STATE_UNKNOWN_INFO AllowAccessState = 4
)

func (AllowAccessState) Descriptor

func (AllowAccessState) Enum

func (AllowAccessState) EnumDescriptor deprecated

func (AllowAccessState) EnumDescriptor() ([]byte, []int)

Deprecated: Use AllowAccessState.Descriptor instead.

func (AllowAccessState) Number

func (AllowAccessState) String

func (x AllowAccessState) String() string

func (AllowAccessState) Type

type AllowBindingExplanation

type AllowBindingExplanation struct {

	// Required. Indicates whether _this role binding_ gives the specified
	// permission to the specified principal on the specified resource.
	//
	// This field does _not_ indicate whether the principal actually has the
	// permission on the resource. There might be another role binding that
	// overrides this role binding. To determine whether the principal actually
	// has the permission, use the `overall_access_state` field in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	AllowAccessState AllowAccessState `` /* 175-byte string literal not displayed */
	// The role that this role binding grants. For example,
	// `roles/compute.admin`.
	//
	// For a complete list of predefined IAM roles, as well as the permissions in
	// each role, see https://cloud.google.com/iam/help/roles/reference.
	Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// Indicates whether the role granted by this role binding contains the
	// specified permission.
	RolePermission RolePermissionInclusionState `` /* 179-byte string literal not displayed */
	// The relevance of the permission's existence, or nonexistence, in the role
	// to the overall determination for the entire policy.
	RolePermissionRelevance HeuristicRelevance `` /* 198-byte string literal not displayed */
	// The combined result of all memberships. Indicates if the principal is
	// included in any role binding, either directly or indirectly.
	CombinedMembership *AllowBindingExplanation_AnnotatedAllowMembership `protobuf:"bytes,5,opt,name=combined_membership,json=combinedMembership,proto3" json:"combined_membership,omitempty"`
	// Indicates whether each role binding includes the principal specified in the
	// request, either directly or indirectly. Each key identifies a principal in
	// the role binding, and each value indicates whether the principal in the
	// role binding includes the principal in the request.
	//
	// For example, suppose that a role binding includes the following principals:
	//
	// * `user:alice@example.com`
	// * `group:product-eng@example.com`
	//
	// You want to troubleshoot access for `user:bob@example.com`. This user is a
	// member of the group `group:product-eng@example.com`.
	//
	// For the first principal in the role binding, the key is
	// `user:alice@example.com`, and the `membership` field in the value is set to
	// `NOT_INCLUDED`.
	//
	// For the second principal in the role binding, the key is
	// `group:product-eng@example.com`, and the `membership` field in the value is
	// set to `INCLUDED`.
	Memberships map[string]*AllowBindingExplanation_AnnotatedAllowMembership `` /* 163-byte string literal not displayed */
	// The relevance of this role binding to the overall determination for the
	// entire policy.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// A condition expression that specifies when the role binding grants access.
	//
	// To learn about IAM Conditions, see
	// https://cloud.google.com/iam/help/conditions/overview.
	Condition *expr.Expr `protobuf:"bytes,8,opt,name=condition,proto3" json:"condition,omitempty"`
	// Condition evaluation state for this role binding.
	ConditionExplanation *ConditionExplanation `protobuf:"bytes,9,opt,name=condition_explanation,json=conditionExplanation,proto3" json:"condition_explanation,omitempty"`
	// contains filtered or unexported fields
}

Details about how a role binding in an allow policy affects a principal's ability to use a permission.

func (*AllowBindingExplanation) Descriptor deprecated

func (*AllowBindingExplanation) Descriptor() ([]byte, []int)

Deprecated: Use AllowBindingExplanation.ProtoReflect.Descriptor instead.

func (*AllowBindingExplanation) GetAllowAccessState

func (x *AllowBindingExplanation) GetAllowAccessState() AllowAccessState

func (*AllowBindingExplanation) GetCombinedMembership

func (*AllowBindingExplanation) GetCondition

func (x *AllowBindingExplanation) GetCondition() *expr.Expr

func (*AllowBindingExplanation) GetConditionExplanation

func (x *AllowBindingExplanation) GetConditionExplanation() *ConditionExplanation

func (*AllowBindingExplanation) GetMemberships

func (*AllowBindingExplanation) GetRelevance

func (x *AllowBindingExplanation) GetRelevance() HeuristicRelevance

func (*AllowBindingExplanation) GetRole

func (x *AllowBindingExplanation) GetRole() string

func (*AllowBindingExplanation) GetRolePermission

func (*AllowBindingExplanation) GetRolePermissionRelevance

func (x *AllowBindingExplanation) GetRolePermissionRelevance() HeuristicRelevance

func (*AllowBindingExplanation) ProtoMessage

func (*AllowBindingExplanation) ProtoMessage()

func (*AllowBindingExplanation) ProtoReflect

func (x *AllowBindingExplanation) ProtoReflect() protoreflect.Message

func (*AllowBindingExplanation) Reset

func (x *AllowBindingExplanation) Reset()

func (*AllowBindingExplanation) String

func (x *AllowBindingExplanation) String() string

type AllowBindingExplanation_AnnotatedAllowMembership

type AllowBindingExplanation_AnnotatedAllowMembership struct {

	// Indicates whether the role binding includes the principal.
	Membership MembershipMatchingState `` /* 144-byte string literal not displayed */
	// The relevance of the principal's status to the overall determination for
	// the role binding.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Details about whether the role binding includes the principal.

func (*AllowBindingExplanation_AnnotatedAllowMembership) Descriptor deprecated

Deprecated: Use AllowBindingExplanation_AnnotatedAllowMembership.ProtoReflect.Descriptor instead.

func (*AllowBindingExplanation_AnnotatedAllowMembership) GetMembership

func (*AllowBindingExplanation_AnnotatedAllowMembership) GetRelevance

func (*AllowBindingExplanation_AnnotatedAllowMembership) ProtoMessage

func (*AllowBindingExplanation_AnnotatedAllowMembership) ProtoReflect

func (*AllowBindingExplanation_AnnotatedAllowMembership) Reset

func (*AllowBindingExplanation_AnnotatedAllowMembership) String

type AllowPolicyExplanation

type AllowPolicyExplanation struct {

	// Indicates whether the principal has the specified permission for the
	// specified resource, based on evaluating all applicable IAM allow policies.
	AllowAccessState AllowAccessState `` /* 175-byte string literal not displayed */
	// List of IAM allow policies that were evaluated to check the principal's
	// permissions, with annotations to indicate how each policy contributed to
	// the final result.
	//
	// The list of policies includes the policy for the resource itself, as well
	// as allow policies that are inherited from higher levels of the resource
	// hierarchy, including the organization, the folder, and the project.
	//
	// To learn more about the resource hierarchy, see
	// https://cloud.google.com/iam/help/resource-hierarchy.
	ExplainedPolicies []*ExplainedAllowPolicy `protobuf:"bytes,2,rep,name=explained_policies,json=explainedPolicies,proto3" json:"explained_policies,omitempty"`
	// The relevance of the allow policy type to the overall access state.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Details about how the relevant IAM allow policies affect the final access state.

func (*AllowPolicyExplanation) Descriptor deprecated

func (*AllowPolicyExplanation) Descriptor() ([]byte, []int)

Deprecated: Use AllowPolicyExplanation.ProtoReflect.Descriptor instead.

func (*AllowPolicyExplanation) GetAllowAccessState

func (x *AllowPolicyExplanation) GetAllowAccessState() AllowAccessState

func (*AllowPolicyExplanation) GetExplainedPolicies

func (x *AllowPolicyExplanation) GetExplainedPolicies() []*ExplainedAllowPolicy

func (*AllowPolicyExplanation) GetRelevance

func (x *AllowPolicyExplanation) GetRelevance() HeuristicRelevance

func (*AllowPolicyExplanation) ProtoMessage

func (*AllowPolicyExplanation) ProtoMessage()

func (*AllowPolicyExplanation) ProtoReflect

func (x *AllowPolicyExplanation) ProtoReflect() protoreflect.Message

func (*AllowPolicyExplanation) Reset

func (x *AllowPolicyExplanation) Reset()

func (*AllowPolicyExplanation) String

func (x *AllowPolicyExplanation) String() string

type ConditionContext

type ConditionContext struct {

	// Represents a target resource that is involved with a network activity.
	// If multiple resources are involved with an activity, this must be the
	// primary one.
	Resource *ConditionContext_Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// The destination of a network activity, such as accepting a TCP connection.
	// In a multi-hop network activity, the destination represents the receiver of
	// the last hop.
	Destination *ConditionContext_Peer `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
	// Represents a network request, such as an HTTP request.
	Request *ConditionContext_Request `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
	// Output only. The effective tags on the resource. The effective tags are
	// fetched during troubleshooting.
	EffectiveTags []*ConditionContext_EffectiveTag `protobuf:"bytes,4,rep,name=effective_tags,json=effectiveTags,proto3" json:"effective_tags,omitempty"`
	// contains filtered or unexported fields
}

Additional context for troubleshooting conditional role bindings and deny rules.

func (*ConditionContext) Descriptor deprecated

func (*ConditionContext) Descriptor() ([]byte, []int)

Deprecated: Use ConditionContext.ProtoReflect.Descriptor instead.

func (*ConditionContext) GetDestination

func (x *ConditionContext) GetDestination() *ConditionContext_Peer

func (*ConditionContext) GetEffectiveTags

func (x *ConditionContext) GetEffectiveTags() []*ConditionContext_EffectiveTag

func (*ConditionContext) GetRequest

func (x *ConditionContext) GetRequest() *ConditionContext_Request

func (*ConditionContext) GetResource

func (x *ConditionContext) GetResource() *ConditionContext_Resource

func (*ConditionContext) ProtoMessage

func (*ConditionContext) ProtoMessage()

func (*ConditionContext) ProtoReflect

func (x *ConditionContext) ProtoReflect() protoreflect.Message

func (*ConditionContext) Reset

func (x *ConditionContext) Reset()

func (*ConditionContext) String

func (x *ConditionContext) String() string

type ConditionContext_EffectiveTag

type ConditionContext_EffectiveTag struct {

	// Output only. Resource name for TagValue in the format `tagValues/456`.
	TagValue string `protobuf:"bytes,1,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"`
	// Output only. The namespaced name of the TagValue. Can be in the form
	// `{organization_id}/{tag_key_short_name}/{tag_value_short_name}` or
	// `{project_id}/{tag_key_short_name}/{tag_value_short_name}` or
	// `{project_number}/{tag_key_short_name}/{tag_value_short_name}`.
	NamespacedTagValue string `protobuf:"bytes,2,opt,name=namespaced_tag_value,json=namespacedTagValue,proto3" json:"namespaced_tag_value,omitempty"`
	// Output only. The name of the TagKey, in the format `tagKeys/{id}`, such
	// as `tagKeys/123`.
	TagKey string `protobuf:"bytes,3,opt,name=tag_key,json=tagKey,proto3" json:"tag_key,omitempty"`
	// Output only. The namespaced name of the TagKey. Can be in the form
	// `{organization_id}/{tag_key_short_name}` or
	// `{project_id}/{tag_key_short_name}` or
	// `{project_number}/{tag_key_short_name}`.
	NamespacedTagKey string `protobuf:"bytes,4,opt,name=namespaced_tag_key,json=namespacedTagKey,proto3" json:"namespaced_tag_key,omitempty"`
	// The parent name of the tag key.
	// Must be in the format `organizations/{organization_id}` or
	// `projects/{project_number}`
	TagKeyParentName string `protobuf:"bytes,6,opt,name=tag_key_parent_name,json=tagKeyParentName,proto3" json:"tag_key_parent_name,omitempty"`
	// Output only. Indicates the inheritance status of a tag value
	// attached to the given resource. If the tag value is inherited from one of
	// the resource's ancestors, inherited will be true. If false, then the tag
	// value is directly attached to the resource, inherited will be false.
	Inherited bool `protobuf:"varint,5,opt,name=inherited,proto3" json:"inherited,omitempty"`
	// contains filtered or unexported fields
}

A tag that applies to a resource during policy evaluation. Tags can be either directly bound to a resource or inherited from its ancestor. `EffectiveTag` contains the `name` and `namespaced_name` of the tag value and tag key, with additional fields of `inherited` to indicate the inheritance status of the effective tag.

func (*ConditionContext_EffectiveTag) Descriptor deprecated

func (*ConditionContext_EffectiveTag) Descriptor() ([]byte, []int)

Deprecated: Use ConditionContext_EffectiveTag.ProtoReflect.Descriptor instead.

func (*ConditionContext_EffectiveTag) GetInherited

func (x *ConditionContext_EffectiveTag) GetInherited() bool

func (*ConditionContext_EffectiveTag) GetNamespacedTagKey

func (x *ConditionContext_EffectiveTag) GetNamespacedTagKey() string

func (*ConditionContext_EffectiveTag) GetNamespacedTagValue

func (x *ConditionContext_EffectiveTag) GetNamespacedTagValue() string

func (*ConditionContext_EffectiveTag) GetTagKey

func (x *ConditionContext_EffectiveTag) GetTagKey() string

func (*ConditionContext_EffectiveTag) GetTagKeyParentName

func (x *ConditionContext_EffectiveTag) GetTagKeyParentName() string

func (*ConditionContext_EffectiveTag) GetTagValue

func (x *ConditionContext_EffectiveTag) GetTagValue() string

func (*ConditionContext_EffectiveTag) ProtoMessage

func (*ConditionContext_EffectiveTag) ProtoMessage()

func (*ConditionContext_EffectiveTag) ProtoReflect

func (*ConditionContext_EffectiveTag) Reset

func (x *ConditionContext_EffectiveTag) Reset()

func (*ConditionContext_EffectiveTag) String

type ConditionContext_Peer

type ConditionContext_Peer struct {

	// The IPv4 or IPv6 address of the peer.
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// The network port of the peer.
	Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in `principal` and `labels` as appropriate.

func (*ConditionContext_Peer) Descriptor deprecated

func (*ConditionContext_Peer) Descriptor() ([]byte, []int)

Deprecated: Use ConditionContext_Peer.ProtoReflect.Descriptor instead.

func (*ConditionContext_Peer) GetIp

func (x *ConditionContext_Peer) GetIp() string

func (*ConditionContext_Peer) GetPort

func (x *ConditionContext_Peer) GetPort() int64

func (*ConditionContext_Peer) ProtoMessage

func (*ConditionContext_Peer) ProtoMessage()

func (*ConditionContext_Peer) ProtoReflect

func (x *ConditionContext_Peer) ProtoReflect() protoreflect.Message

func (*ConditionContext_Peer) Reset

func (x *ConditionContext_Peer) Reset()

func (*ConditionContext_Peer) String

func (x *ConditionContext_Peer) String() string

type ConditionContext_Request

type ConditionContext_Request struct {

	// Optional. The timestamp when the destination service receives the first
	// byte of the request.
	ReceiveTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=receive_time,json=receiveTime,proto3" json:"receive_time,omitempty"`
	// contains filtered or unexported fields
}

This message defines attributes for an HTTP request. If the actual request is not an HTTP request, the runtime system should try to map the actual request to an equivalent HTTP request.

func (*ConditionContext_Request) Descriptor deprecated

func (*ConditionContext_Request) Descriptor() ([]byte, []int)

Deprecated: Use ConditionContext_Request.ProtoReflect.Descriptor instead.

func (*ConditionContext_Request) GetReceiveTime

func (x *ConditionContext_Request) GetReceiveTime() *timestamppb.Timestamp

func (*ConditionContext_Request) ProtoMessage

func (*ConditionContext_Request) ProtoMessage()

func (*ConditionContext_Request) ProtoReflect

func (x *ConditionContext_Request) ProtoReflect() protoreflect.Message

func (*ConditionContext_Request) Reset

func (x *ConditionContext_Request) Reset()

func (*ConditionContext_Request) String

func (x *ConditionContext_Request) String() string

type ConditionContext_Resource

type ConditionContext_Resource struct {

	// The name of the service that this resource belongs to, such as
	// `compute.googleapis.com`. The service name might not match the DNS
	// hostname that actually serves the request.
	//
	// For a full list of resource service values, see
	// https://cloud.google.com/iam/help/conditions/resource-services
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// The stable identifier (name) of a resource on the `service`. A resource
	// can be logically identified as `//{resource.service}/{resource.name}`.
	// Unlike the resource URI, the resource name doesn't contain any protocol
	// and version information.
	//
	// For a list of full resource name formats, see
	// https://cloud.google.com/iam/help/troubleshooter/full-resource-names
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The type of the resource, in the format `{service}/{kind}`.
	//
	// For a full list of resource type values, see
	// https://cloud.google.com/iam/help/conditions/resource-types
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a Compute Engine instance.

func (*ConditionContext_Resource) Descriptor deprecated

func (*ConditionContext_Resource) Descriptor() ([]byte, []int)

Deprecated: Use ConditionContext_Resource.ProtoReflect.Descriptor instead.

func (*ConditionContext_Resource) GetName

func (x *ConditionContext_Resource) GetName() string

func (*ConditionContext_Resource) GetService

func (x *ConditionContext_Resource) GetService() string

func (*ConditionContext_Resource) GetType

func (x *ConditionContext_Resource) GetType() string

func (*ConditionContext_Resource) ProtoMessage

func (*ConditionContext_Resource) ProtoMessage()

func (*ConditionContext_Resource) ProtoReflect

func (*ConditionContext_Resource) Reset

func (x *ConditionContext_Resource) Reset()

func (*ConditionContext_Resource) String

func (x *ConditionContext_Resource) String() string

type ConditionExplanation

type ConditionExplanation struct {

	// Value of the condition.
	Value *structpb.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Any errors that prevented complete evaluation of the condition expression.
	Errors []*status.Status `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
	// The value of each statement of the condition expression. The value can be
	// `true`, `false`, or `null`. The value is `null` if the statement can't be
	// evaluated.
	EvaluationStates []*ConditionExplanation_EvaluationState `protobuf:"bytes,2,rep,name=evaluation_states,json=evaluationStates,proto3" json:"evaluation_states,omitempty"`
	// contains filtered or unexported fields
}

Explanation for how a condition affects a principal's access

func (*ConditionExplanation) Descriptor deprecated

func (*ConditionExplanation) Descriptor() ([]byte, []int)

Deprecated: Use ConditionExplanation.ProtoReflect.Descriptor instead.

func (*ConditionExplanation) GetErrors

func (x *ConditionExplanation) GetErrors() []*status.Status

func (*ConditionExplanation) GetEvaluationStates

func (x *ConditionExplanation) GetEvaluationStates() []*ConditionExplanation_EvaluationState

func (*ConditionExplanation) GetValue

func (x *ConditionExplanation) GetValue() *structpb.Value

func (*ConditionExplanation) ProtoMessage

func (*ConditionExplanation) ProtoMessage()

func (*ConditionExplanation) ProtoReflect

func (x *ConditionExplanation) ProtoReflect() protoreflect.Message

func (*ConditionExplanation) Reset

func (x *ConditionExplanation) Reset()

func (*ConditionExplanation) String

func (x *ConditionExplanation) String() string

type ConditionExplanation_EvaluationState

type ConditionExplanation_EvaluationState struct {

	// Start position of an expression in the condition, by character.
	Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	// End position of an expression in the condition, by character,
	// end included, for example: the end position of the first part of
	// `a==b || c==d` would be 4.
	End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// Value of this expression.
	Value *structpb.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// Any errors that prevented complete evaluation of the condition
	// expression.
	Errors []*status.Status `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Evaluated state of a condition expression.

func (*ConditionExplanation_EvaluationState) Descriptor deprecated

func (*ConditionExplanation_EvaluationState) Descriptor() ([]byte, []int)

Deprecated: Use ConditionExplanation_EvaluationState.ProtoReflect.Descriptor instead.

func (*ConditionExplanation_EvaluationState) GetEnd

func (*ConditionExplanation_EvaluationState) GetErrors

func (*ConditionExplanation_EvaluationState) GetStart

func (*ConditionExplanation_EvaluationState) GetValue

func (*ConditionExplanation_EvaluationState) ProtoMessage

func (*ConditionExplanation_EvaluationState) ProtoMessage()

func (*ConditionExplanation_EvaluationState) ProtoReflect

func (*ConditionExplanation_EvaluationState) Reset

func (*ConditionExplanation_EvaluationState) String

type DenyAccessState

type DenyAccessState int32

Whether IAM deny policies deny the principal the permission.

const (
	// Not specified.
	DenyAccessState_DENY_ACCESS_STATE_UNSPECIFIED DenyAccessState = 0
	// The deny policy denies the principal the permission.
	DenyAccessState_DENY_ACCESS_STATE_DENIED DenyAccessState = 1
	// The deny policy doesn't deny the principal the permission.
	DenyAccessState_DENY_ACCESS_STATE_NOT_DENIED DenyAccessState = 2
	// The deny policy denies the principal the permission if a condition
	// expression evaluates to `true`. However, the sender of the request didn't
	// provide enough context for Policy Troubleshooter to evaluate the condition
	// expression.
	DenyAccessState_DENY_ACCESS_STATE_UNKNOWN_CONDITIONAL DenyAccessState = 3
	// The sender of the request does not have access to all of the deny policies
	// that Policy Troubleshooter needs to evaluate the principal's access.
	DenyAccessState_DENY_ACCESS_STATE_UNKNOWN_INFO DenyAccessState = 4
)

func (DenyAccessState) Descriptor

func (DenyAccessState) Enum

func (x DenyAccessState) Enum() *DenyAccessState

func (DenyAccessState) EnumDescriptor deprecated

func (DenyAccessState) EnumDescriptor() ([]byte, []int)

Deprecated: Use DenyAccessState.Descriptor instead.

func (DenyAccessState) Number

func (DenyAccessState) String

func (x DenyAccessState) String() string

func (DenyAccessState) Type

type DenyPolicyExplanation

type DenyPolicyExplanation struct {

	// Indicates whether the principal is denied the specified permission for
	// the specified resource, based on evaluating all applicable IAM deny
	// policies.
	DenyAccessState DenyAccessState `` /* 171-byte string literal not displayed */
	// List of resources with IAM deny policies that were evaluated to check the
	// principal's denied permissions, with annotations to indicate how each
	// policy contributed to the final result.
	//
	// The list of resources includes the policy for the resource itself, as well
	// as policies that are inherited from higher levels of the resource
	// hierarchy, including the organization, the folder, and the project. The
	// order of the resources starts from the resource and climbs up the resource
	// hierarchy.
	//
	// To learn more about the resource hierarchy, see
	// https://cloud.google.com/iam/help/resource-hierarchy.
	ExplainedResources []*ExplainedDenyResource `protobuf:"bytes,2,rep,name=explained_resources,json=explainedResources,proto3" json:"explained_resources,omitempty"`
	// The relevance of the deny policy result to the overall access state.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// Indicates whether the permission to troubleshoot is supported in deny
	// policies.
	PermissionDeniable bool `protobuf:"varint,4,opt,name=permission_deniable,json=permissionDeniable,proto3" json:"permission_deniable,omitempty"`
	// contains filtered or unexported fields
}

Details about how the relevant IAM deny policies affect the final access state.

func (*DenyPolicyExplanation) Descriptor deprecated

func (*DenyPolicyExplanation) Descriptor() ([]byte, []int)

Deprecated: Use DenyPolicyExplanation.ProtoReflect.Descriptor instead.

func (*DenyPolicyExplanation) GetDenyAccessState

func (x *DenyPolicyExplanation) GetDenyAccessState() DenyAccessState

func (*DenyPolicyExplanation) GetExplainedResources

func (x *DenyPolicyExplanation) GetExplainedResources() []*ExplainedDenyResource

func (*DenyPolicyExplanation) GetPermissionDeniable

func (x *DenyPolicyExplanation) GetPermissionDeniable() bool

func (*DenyPolicyExplanation) GetRelevance

func (x *DenyPolicyExplanation) GetRelevance() HeuristicRelevance

func (*DenyPolicyExplanation) ProtoMessage

func (*DenyPolicyExplanation) ProtoMessage()

func (*DenyPolicyExplanation) ProtoReflect

func (x *DenyPolicyExplanation) ProtoReflect() protoreflect.Message

func (*DenyPolicyExplanation) Reset

func (x *DenyPolicyExplanation) Reset()

func (*DenyPolicyExplanation) String

func (x *DenyPolicyExplanation) String() string

type DenyRuleExplanation

type DenyRuleExplanation struct {

	// Required. Indicates whether _this rule_ denies the specified permission to
	// the specified principal for the specified resource.
	//
	// This field does _not_ indicate whether the principal is actually denied on
	// the permission for the resource. There might be another rule that overrides
	// this rule. To determine whether the principal actually has the permission,
	// use the `overall_access_state` field in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	DenyAccessState DenyAccessState `` /* 171-byte string literal not displayed */
	// Indicates whether the permission in the request is listed as a denied
	// permission in the deny rule.
	CombinedDeniedPermission *DenyRuleExplanation_AnnotatedPermissionMatching `` /* 135-byte string literal not displayed */
	// Lists all denied permissions in the deny rule and indicates whether each
	// permission matches the permission in the request.
	//
	// Each key identifies a denied permission in the rule, and each value
	// indicates whether the denied permission matches the permission in the
	// request.
	DeniedPermissions map[string]*DenyRuleExplanation_AnnotatedPermissionMatching `` /* 200-byte string literal not displayed */
	// Indicates whether the permission in the request is listed as an exception
	// permission in the deny rule.
	CombinedExceptionPermission *DenyRuleExplanation_AnnotatedPermissionMatching `` /* 144-byte string literal not displayed */
	// Lists all exception permissions in the deny rule and indicates whether each
	// permission matches the permission in the request.
	//
	// Each key identifies a exception permission in the rule, and each value
	// indicates whether the exception permission matches the permission in the
	// request.
	ExceptionPermissions map[string]*DenyRuleExplanation_AnnotatedPermissionMatching `` /* 209-byte string literal not displayed */
	// Indicates whether the principal is listed as a denied principal in the
	// deny rule, either directly or through membership in a principal set.
	CombinedDeniedPrincipal *DenyRuleExplanation_AnnotatedDenyPrincipalMatching `` /* 132-byte string literal not displayed */
	// Lists all denied principals in the deny rule and indicates whether each
	// principal matches the principal in the request, either directly or through
	// membership in a principal set.
	//
	// Each key identifies a denied principal in the rule, and each value
	// indicates whether the denied principal matches the principal in the
	// request.
	DeniedPrincipals map[string]*DenyRuleExplanation_AnnotatedDenyPrincipalMatching `` /* 197-byte string literal not displayed */
	// Indicates whether the principal is listed as an exception principal in the
	// deny rule, either directly or through membership in a principal set.
	CombinedExceptionPrincipal *DenyRuleExplanation_AnnotatedDenyPrincipalMatching `` /* 141-byte string literal not displayed */
	// Lists all exception principals in the deny rule and indicates whether each
	// principal matches the principal in the request, either directly or through
	// membership in a principal set.
	//
	// Each key identifies a exception principal in the rule, and each value
	// indicates whether the exception principal matches the principal in the
	// request.
	ExceptionPrincipals map[string]*DenyRuleExplanation_AnnotatedDenyPrincipalMatching `` /* 206-byte string literal not displayed */
	// The relevance of this role binding to the overall determination for the
	// entire policy.
	Relevance HeuristicRelevance `` /* 138-byte string literal not displayed */
	// A condition expression that specifies when the deny rule denies the
	// principal access.
	//
	// To learn about IAM Conditions, see
	// https://cloud.google.com/iam/help/conditions/overview.
	Condition *expr.Expr `protobuf:"bytes,11,opt,name=condition,proto3" json:"condition,omitempty"`
	// Condition evaluation state for this role binding.
	ConditionExplanation *ConditionExplanation `protobuf:"bytes,12,opt,name=condition_explanation,json=conditionExplanation,proto3" json:"condition_explanation,omitempty"`
	// contains filtered or unexported fields
}

Details about how a deny rule in a deny policy affects a principal's ability to use a permission.

func (*DenyRuleExplanation) Descriptor deprecated

func (*DenyRuleExplanation) Descriptor() ([]byte, []int)

Deprecated: Use DenyRuleExplanation.ProtoReflect.Descriptor instead.

func (*DenyRuleExplanation) GetCombinedDeniedPermission

func (x *DenyRuleExplanation) GetCombinedDeniedPermission() *DenyRuleExplanation_AnnotatedPermissionMatching

func (*DenyRuleExplanation) GetCombinedDeniedPrincipal

func (*DenyRuleExplanation) GetCombinedExceptionPermission

func (x *DenyRuleExplanation) GetCombinedExceptionPermission() *DenyRuleExplanation_AnnotatedPermissionMatching

func (*DenyRuleExplanation) GetCombinedExceptionPrincipal

func (x *DenyRuleExplanation) GetCombinedExceptionPrincipal() *DenyRuleExplanation_AnnotatedDenyPrincipalMatching

func (*DenyRuleExplanation) GetCondition

func (x *DenyRuleExplanation) GetCondition() *expr.Expr

func (*DenyRuleExplanation) GetConditionExplanation

func (x *DenyRuleExplanation) GetConditionExplanation() *ConditionExplanation

func (*DenyRuleExplanation) GetDeniedPermissions

func (*DenyRuleExplanation) GetDeniedPrincipals

func (*DenyRuleExplanation) GetDenyAccessState

func (x *DenyRuleExplanation) GetDenyAccessState() DenyAccessState

func (*DenyRuleExplanation) GetExceptionPermissions

func (*DenyRuleExplanation) GetExceptionPrincipals

func (*DenyRuleExplanation) GetRelevance

func (x *DenyRuleExplanation) GetRelevance() HeuristicRelevance

func (*DenyRuleExplanation) ProtoMessage

func (*DenyRuleExplanation) ProtoMessage()

func (*DenyRuleExplanation) ProtoReflect

func (x *DenyRuleExplanation) ProtoReflect() protoreflect.Message

func (*DenyRuleExplanation) Reset

func (x *DenyRuleExplanation) Reset()

func (*DenyRuleExplanation) String

func (x *DenyRuleExplanation) String() string

type DenyRuleExplanation_AnnotatedDenyPrincipalMatching

type DenyRuleExplanation_AnnotatedDenyPrincipalMatching struct {

	// Indicates whether the principal is listed as a denied principal in the
	// deny rule, either directly or through membership in a principal set.
	Membership MembershipMatchingState `` /* 144-byte string literal not displayed */
	// The relevance of the principal's status to the overall determination for
	// the role binding.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Details about whether the principal in the request is listed as a denied principal in the deny rule, either directly or through membership in a principal set.

func (*DenyRuleExplanation_AnnotatedDenyPrincipalMatching) Descriptor deprecated

Deprecated: Use DenyRuleExplanation_AnnotatedDenyPrincipalMatching.ProtoReflect.Descriptor instead.

func (*DenyRuleExplanation_AnnotatedDenyPrincipalMatching) GetMembership

func (*DenyRuleExplanation_AnnotatedDenyPrincipalMatching) GetRelevance

func (*DenyRuleExplanation_AnnotatedDenyPrincipalMatching) ProtoMessage

func (*DenyRuleExplanation_AnnotatedDenyPrincipalMatching) ProtoReflect

func (*DenyRuleExplanation_AnnotatedDenyPrincipalMatching) Reset

func (*DenyRuleExplanation_AnnotatedDenyPrincipalMatching) String

type DenyRuleExplanation_AnnotatedPermissionMatching

type DenyRuleExplanation_AnnotatedPermissionMatching struct {

	// Indicates whether the permission in the request is denied by the deny
	// rule.
	PermissionMatchingState PermissionPatternMatchingState `` /* 210-byte string literal not displayed */
	// The relevance of the permission status to the overall determination for
	// the rule.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Details about whether the permission in the request is denied by the deny rule.

func (*DenyRuleExplanation_AnnotatedPermissionMatching) Descriptor deprecated

Deprecated: Use DenyRuleExplanation_AnnotatedPermissionMatching.ProtoReflect.Descriptor instead.

func (*DenyRuleExplanation_AnnotatedPermissionMatching) GetPermissionMatchingState

func (*DenyRuleExplanation_AnnotatedPermissionMatching) GetRelevance

func (*DenyRuleExplanation_AnnotatedPermissionMatching) ProtoMessage

func (*DenyRuleExplanation_AnnotatedPermissionMatching) ProtoReflect

func (*DenyRuleExplanation_AnnotatedPermissionMatching) Reset

func (*DenyRuleExplanation_AnnotatedPermissionMatching) String

type ExplainedAllowPolicy

type ExplainedAllowPolicy struct {

	// Required. Indicates whether _this policy_ provides the specified permission
	// to the specified principal for the specified resource.
	//
	// This field does _not_ indicate whether the principal actually has the
	// permission for the resource. There might be another policy that overrides
	// this policy. To determine whether the principal actually has the
	// permission, use the `overall_access_state` field in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	AllowAccessState AllowAccessState `` /* 175-byte string literal not displayed */
	// The full resource name that identifies the resource. For example,
	// `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	//
	// For examples of full resource names for Google Cloud services, see
	// https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
	FullResourceName string `protobuf:"bytes,2,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
	// Details about how each role binding in the policy affects the principal's
	// ability, or inability, to use the permission for the resource. The order of
	// the role bindings matches the role binding order in the policy.
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	BindingExplanations []*AllowBindingExplanation `protobuf:"bytes,3,rep,name=binding_explanations,json=bindingExplanations,proto3" json:"binding_explanations,omitempty"`
	// The relevance of this policy to the overall access state in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// The IAM allow policy attached to the resource.
	//
	// If the sender of the request does not have access to the policy, this field
	// is empty.
	Policy *iampb.Policy `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

Details about how a specific IAM allow policy contributed to the final access state.

func (*ExplainedAllowPolicy) Descriptor deprecated

func (*ExplainedAllowPolicy) Descriptor() ([]byte, []int)

Deprecated: Use ExplainedAllowPolicy.ProtoReflect.Descriptor instead.

func (*ExplainedAllowPolicy) GetAllowAccessState

func (x *ExplainedAllowPolicy) GetAllowAccessState() AllowAccessState

func (*ExplainedAllowPolicy) GetBindingExplanations

func (x *ExplainedAllowPolicy) GetBindingExplanations() []*AllowBindingExplanation

func (*ExplainedAllowPolicy) GetFullResourceName

func (x *ExplainedAllowPolicy) GetFullResourceName() string

func (*ExplainedAllowPolicy) GetPolicy

func (x *ExplainedAllowPolicy) GetPolicy() *iampb.Policy

func (*ExplainedAllowPolicy) GetRelevance

func (x *ExplainedAllowPolicy) GetRelevance() HeuristicRelevance

func (*ExplainedAllowPolicy) ProtoMessage

func (*ExplainedAllowPolicy) ProtoMessage()

func (*ExplainedAllowPolicy) ProtoReflect

func (x *ExplainedAllowPolicy) ProtoReflect() protoreflect.Message

func (*ExplainedAllowPolicy) Reset

func (x *ExplainedAllowPolicy) Reset()

func (*ExplainedAllowPolicy) String

func (x *ExplainedAllowPolicy) String() string

type ExplainedDenyPolicy

type ExplainedDenyPolicy struct {

	// Required. Indicates whether _this policy_ denies the specified permission
	// to the specified principal for the specified resource.
	//
	// This field does _not_ indicate whether the principal actually has the
	// permission for the resource. There might be another policy that overrides
	// this policy. To determine whether the principal actually has the
	// permission, use the `overall_access_state` field in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	DenyAccessState DenyAccessState `` /* 171-byte string literal not displayed */
	// The IAM deny policy attached to the resource.
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	Policy *iampb1.Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
	// Details about how each rule in the policy affects the principal's inability
	// to use the permission for the resource. The order of the deny rule matches
	// the order of the rules in the deny policy.
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	RuleExplanations []*DenyRuleExplanation `protobuf:"bytes,3,rep,name=rule_explanations,json=ruleExplanations,proto3" json:"rule_explanations,omitempty"`
	// The relevance of this policy to the overall access state in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Details about how a specific IAM deny policy [Policy][google.iam.v2.Policy] contributed to the access check.

func (*ExplainedDenyPolicy) Descriptor deprecated

func (*ExplainedDenyPolicy) Descriptor() ([]byte, []int)

Deprecated: Use ExplainedDenyPolicy.ProtoReflect.Descriptor instead.

func (*ExplainedDenyPolicy) GetDenyAccessState

func (x *ExplainedDenyPolicy) GetDenyAccessState() DenyAccessState

func (*ExplainedDenyPolicy) GetPolicy

func (x *ExplainedDenyPolicy) GetPolicy() *iampb1.Policy

func (*ExplainedDenyPolicy) GetRelevance

func (x *ExplainedDenyPolicy) GetRelevance() HeuristicRelevance

func (*ExplainedDenyPolicy) GetRuleExplanations

func (x *ExplainedDenyPolicy) GetRuleExplanations() []*DenyRuleExplanation

func (*ExplainedDenyPolicy) ProtoMessage

func (*ExplainedDenyPolicy) ProtoMessage()

func (*ExplainedDenyPolicy) ProtoReflect

func (x *ExplainedDenyPolicy) ProtoReflect() protoreflect.Message

func (*ExplainedDenyPolicy) Reset

func (x *ExplainedDenyPolicy) Reset()

func (*ExplainedDenyPolicy) String

func (x *ExplainedDenyPolicy) String() string

type ExplainedDenyResource

type ExplainedDenyResource struct {

	// Required. Indicates whether any policies attached to _this resource_ deny
	// the specific permission to the specified principal for the specified
	// resource.
	//
	// This field does _not_ indicate whether the principal actually has the
	// permission for the resource. There might be another policy that overrides
	// this policy. To determine whether the principal actually has the
	// permission, use the `overall_access_state` field in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	DenyAccessState DenyAccessState `` /* 171-byte string literal not displayed */
	// The full resource name that identifies the resource. For example,
	// `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	//
	// For examples of full resource names for Google Cloud services, see
	// https://cloud.google.com/iam/help/troubleshooter/full-resource-names.
	FullResourceName string `protobuf:"bytes,2,opt,name=full_resource_name,json=fullResourceName,proto3" json:"full_resource_name,omitempty"`
	// List of IAM deny policies that were evaluated to check the principal's
	// denied permissions, with annotations to indicate how each policy
	// contributed to the final result.
	ExplainedPolicies []*ExplainedDenyPolicy `protobuf:"bytes,3,rep,name=explained_policies,json=explainedPolicies,proto3" json:"explained_policies,omitempty"`
	// The relevance of this policy to the overall access state in the
	// [TroubleshootIamPolicyResponse][google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse].
	//
	// If the sender of the request does not have access to the policy, this field
	// is omitted.
	Relevance HeuristicRelevance `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

Details about how a specific resource contributed to the deny policy evaluation.

func (*ExplainedDenyResource) Descriptor deprecated

func (*ExplainedDenyResource) Descriptor() ([]byte, []int)

Deprecated: Use ExplainedDenyResource.ProtoReflect.Descriptor instead.

func (*ExplainedDenyResource) GetDenyAccessState

func (x *ExplainedDenyResource) GetDenyAccessState() DenyAccessState

func (*ExplainedDenyResource) GetExplainedPolicies

func (x *ExplainedDenyResource) GetExplainedPolicies() []*ExplainedDenyPolicy

func (*ExplainedDenyResource) GetFullResourceName

func (x *ExplainedDenyResource) GetFullResourceName() string

func (*ExplainedDenyResource) GetRelevance

func (x *ExplainedDenyResource) GetRelevance() HeuristicRelevance

func (*ExplainedDenyResource) ProtoMessage

func (*ExplainedDenyResource) ProtoMessage()

func (*ExplainedDenyResource) ProtoReflect

func (x *ExplainedDenyResource) ProtoReflect() protoreflect.Message

func (*ExplainedDenyResource) Reset

func (x *ExplainedDenyResource) Reset()

func (*ExplainedDenyResource) String

func (x *ExplainedDenyResource) String() string

type HeuristicRelevance

type HeuristicRelevance int32

The extent to which a single data point contributes to an overall determination.

const (
	// Not specified.
	HeuristicRelevance_HEURISTIC_RELEVANCE_UNSPECIFIED HeuristicRelevance = 0
	// The data point has a limited effect on the result. Changing the data point
	// is unlikely to affect the overall determination.
	HeuristicRelevance_HEURISTIC_RELEVANCE_NORMAL HeuristicRelevance = 1
	// The data point has a strong effect on the result. Changing the data point
	// is likely to affect the overall determination.
	HeuristicRelevance_HEURISTIC_RELEVANCE_HIGH HeuristicRelevance = 2
)

func (HeuristicRelevance) Descriptor

func (HeuristicRelevance) Enum

func (HeuristicRelevance) EnumDescriptor deprecated

func (HeuristicRelevance) EnumDescriptor() ([]byte, []int)

Deprecated: Use HeuristicRelevance.Descriptor instead.

func (HeuristicRelevance) Number

func (HeuristicRelevance) String

func (x HeuristicRelevance) String() string

func (HeuristicRelevance) Type

type MembershipMatchingState

type MembershipMatchingState int32

Whether the principal in the request matches the principal in the policy.

const (
	// Not specified.
	MembershipMatchingState_MEMBERSHIP_MATCHING_STATE_UNSPECIFIED MembershipMatchingState = 0
	// The principal in the request matches the principal in the policy. The
	// principal can be included directly or indirectly:
	//
	//   - A principal is included directly if that principal is listed in the
	//     role binding.
	//   - A principal is included indirectly if that principal is in a Google
	//     group, Google Workspace account, or Cloud Identity domain that is listed
	//     in the policy.
	MembershipMatchingState_MEMBERSHIP_MATCHED MembershipMatchingState = 1
	// The principal in the request doesn't match the principal in the policy.
	MembershipMatchingState_MEMBERSHIP_NOT_MATCHED MembershipMatchingState = 2
	// The principal in the policy is a group or domain, and the sender of the
	// request doesn't have permission to view whether the principal in the
	// request is a member of the group or domain.
	MembershipMatchingState_MEMBERSHIP_UNKNOWN_INFO MembershipMatchingState = 3
	// The principal is an unsupported type.
	MembershipMatchingState_MEMBERSHIP_UNKNOWN_UNSUPPORTED MembershipMatchingState = 4
)

func (MembershipMatchingState) Descriptor

func (MembershipMatchingState) Enum

func (MembershipMatchingState) EnumDescriptor deprecated

func (MembershipMatchingState) EnumDescriptor() ([]byte, []int)

Deprecated: Use MembershipMatchingState.Descriptor instead.

func (MembershipMatchingState) Number

func (MembershipMatchingState) String

func (x MembershipMatchingState) String() string

func (MembershipMatchingState) Type

type PermissionPatternMatchingState

type PermissionPatternMatchingState int32

Whether the permission in the request matches the permission in the policy.

const (
	// Not specified.
	PermissionPatternMatchingState_PERMISSION_PATTERN_MATCHING_STATE_UNSPECIFIED PermissionPatternMatchingState = 0
	// The permission in the request matches the permission in the policy.
	PermissionPatternMatchingState_PERMISSION_PATTERN_MATCHED PermissionPatternMatchingState = 1
	// The permission in the request matches the permission in the policy.
	PermissionPatternMatchingState_PERMISSION_PATTERN_NOT_MATCHED PermissionPatternMatchingState = 2
)

func (PermissionPatternMatchingState) Descriptor

func (PermissionPatternMatchingState) Enum

func (PermissionPatternMatchingState) EnumDescriptor deprecated

func (PermissionPatternMatchingState) EnumDescriptor() ([]byte, []int)

Deprecated: Use PermissionPatternMatchingState.Descriptor instead.

func (PermissionPatternMatchingState) Number

func (PermissionPatternMatchingState) String

func (PermissionPatternMatchingState) Type

type PolicyTroubleshooterClient

type PolicyTroubleshooterClient interface {
	// Checks whether a principal has a specific permission for a specific
	// resource, and explains why the principal does or doesn't have that
	// permission.
	TroubleshootIamPolicy(ctx context.Context, in *TroubleshootIamPolicyRequest, opts ...grpc.CallOption) (*TroubleshootIamPolicyResponse, error)
}

PolicyTroubleshooterClient is the client API for PolicyTroubleshooter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type PolicyTroubleshooterServer

type PolicyTroubleshooterServer interface {
	// Checks whether a principal has a specific permission for a specific
	// resource, and explains why the principal does or doesn't have that
	// permission.
	TroubleshootIamPolicy(context.Context, *TroubleshootIamPolicyRequest) (*TroubleshootIamPolicyResponse, error)
}

PolicyTroubleshooterServer is the server API for PolicyTroubleshooter service.

type RolePermissionInclusionState

type RolePermissionInclusionState int32

Whether a role includes a specific permission.

const (
	// Not specified.
	RolePermissionInclusionState_ROLE_PERMISSION_INCLUSION_STATE_UNSPECIFIED RolePermissionInclusionState = 0
	// The permission is included in the role.
	RolePermissionInclusionState_ROLE_PERMISSION_INCLUDED RolePermissionInclusionState = 1
	// The permission is not included in the role.
	RolePermissionInclusionState_ROLE_PERMISSION_NOT_INCLUDED RolePermissionInclusionState = 2
	// The sender of the request is not allowed to access the role definition.
	RolePermissionInclusionState_ROLE_PERMISSION_UNKNOWN_INFO RolePermissionInclusionState = 3
)

func (RolePermissionInclusionState) Descriptor

func (RolePermissionInclusionState) Enum

func (RolePermissionInclusionState) EnumDescriptor deprecated

func (RolePermissionInclusionState) EnumDescriptor() ([]byte, []int)

Deprecated: Use RolePermissionInclusionState.Descriptor instead.

func (RolePermissionInclusionState) Number

func (RolePermissionInclusionState) String

func (RolePermissionInclusionState) Type

type TroubleshootIamPolicyRequest

type TroubleshootIamPolicyRequest struct {

	// The information to use for checking whether a principal has a permission
	// for a resource.
	AccessTuple *AccessTuple `protobuf:"bytes,1,opt,name=access_tuple,json=accessTuple,proto3" json:"access_tuple,omitempty"`
	// contains filtered or unexported fields
}

Request for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter.TroubleshootIamPolicy].

func (*TroubleshootIamPolicyRequest) Descriptor deprecated

func (*TroubleshootIamPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use TroubleshootIamPolicyRequest.ProtoReflect.Descriptor instead.

func (*TroubleshootIamPolicyRequest) GetAccessTuple

func (x *TroubleshootIamPolicyRequest) GetAccessTuple() *AccessTuple

func (*TroubleshootIamPolicyRequest) ProtoMessage

func (*TroubleshootIamPolicyRequest) ProtoMessage()

func (*TroubleshootIamPolicyRequest) ProtoReflect

func (*TroubleshootIamPolicyRequest) Reset

func (x *TroubleshootIamPolicyRequest) Reset()

func (*TroubleshootIamPolicyRequest) String

type TroubleshootIamPolicyResponse

type TroubleshootIamPolicyResponse struct {

	// Indicates whether the principal has the specified permission for the
	// specified resource, based on evaluating all types of the applicable IAM
	// policies.
	OverallAccessState TroubleshootIamPolicyResponse_OverallAccessState `` /* 213-byte string literal not displayed */
	// The access tuple from the request, including any provided context used to
	// evaluate the condition.
	AccessTuple *AccessTuple `protobuf:"bytes,2,opt,name=access_tuple,json=accessTuple,proto3" json:"access_tuple,omitempty"`
	// An explanation of how the applicable IAM allow policies affect the final
	// access state.
	AllowPolicyExplanation *AllowPolicyExplanation `` /* 129-byte string literal not displayed */
	// An explanation of how the applicable IAM deny policies affect the final
	// access state.
	DenyPolicyExplanation *DenyPolicyExplanation `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response for [TroubleshootIamPolicy][google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter.TroubleshootIamPolicy].

func (*TroubleshootIamPolicyResponse) Descriptor deprecated

func (*TroubleshootIamPolicyResponse) Descriptor() ([]byte, []int)

Deprecated: Use TroubleshootIamPolicyResponse.ProtoReflect.Descriptor instead.

func (*TroubleshootIamPolicyResponse) GetAccessTuple

func (x *TroubleshootIamPolicyResponse) GetAccessTuple() *AccessTuple

func (*TroubleshootIamPolicyResponse) GetAllowPolicyExplanation

func (x *TroubleshootIamPolicyResponse) GetAllowPolicyExplanation() *AllowPolicyExplanation

func (*TroubleshootIamPolicyResponse) GetDenyPolicyExplanation

func (x *TroubleshootIamPolicyResponse) GetDenyPolicyExplanation() *DenyPolicyExplanation

func (*TroubleshootIamPolicyResponse) GetOverallAccessState

func (*TroubleshootIamPolicyResponse) ProtoMessage

func (*TroubleshootIamPolicyResponse) ProtoMessage()

func (*TroubleshootIamPolicyResponse) ProtoReflect

func (*TroubleshootIamPolicyResponse) Reset

func (x *TroubleshootIamPolicyResponse) Reset()

func (*TroubleshootIamPolicyResponse) String

type TroubleshootIamPolicyResponse_OverallAccessState

type TroubleshootIamPolicyResponse_OverallAccessState int32

Whether the principal has the permission on the resource.

const (
	// Not specified.
	TroubleshootIamPolicyResponse_OVERALL_ACCESS_STATE_UNSPECIFIED TroubleshootIamPolicyResponse_OverallAccessState = 0
	// The principal has the permission.
	TroubleshootIamPolicyResponse_CAN_ACCESS TroubleshootIamPolicyResponse_OverallAccessState = 1
	// The principal doesn't have the permission.
	TroubleshootIamPolicyResponse_CANNOT_ACCESS TroubleshootIamPolicyResponse_OverallAccessState = 2
	// The principal might have the permission, but the sender can't access all
	// of the information needed to fully evaluate the principal's access.
	TroubleshootIamPolicyResponse_UNKNOWN_INFO TroubleshootIamPolicyResponse_OverallAccessState = 3
	// The principal might have the permission, but Policy Troubleshooter can't
	// fully evaluate the principal's access because the sender didn't provide
	// the required context to evaluate the condition.
	TroubleshootIamPolicyResponse_UNKNOWN_CONDITIONAL TroubleshootIamPolicyResponse_OverallAccessState = 4
)

func (TroubleshootIamPolicyResponse_OverallAccessState) Descriptor

func (TroubleshootIamPolicyResponse_OverallAccessState) Enum

func (TroubleshootIamPolicyResponse_OverallAccessState) EnumDescriptor deprecated

Deprecated: Use TroubleshootIamPolicyResponse_OverallAccessState.Descriptor instead.

func (TroubleshootIamPolicyResponse_OverallAccessState) Number

func (TroubleshootIamPolicyResponse_OverallAccessState) String

func (TroubleshootIamPolicyResponse_OverallAccessState) Type

type UnimplementedPolicyTroubleshooterServer

type UnimplementedPolicyTroubleshooterServer struct {
}

UnimplementedPolicyTroubleshooterServer can be embedded to have forward compatible implementations.

func (*UnimplementedPolicyTroubleshooterServer) TroubleshootIamPolicy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL