func (p *PoliciesClient) AttachmentsList(ctx context.Context, orgID, ownerID, policyID *identity.ID) ([]PolicyAttachmentResult, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	if ownerID != nil {
		v.Set("owner_id", ownerID.String())
	}
	if policyID != nil {
		v.Set("policy_id", policyID.String())
	}

	req, _, err := p.client.NewRequest("GET", "/policy-attachments", v, nil, true)
	if err != nil {
		return nil, err
	}

	attachments := []PolicyAttachmentResult{}
	_, err = p.client.Do(ctx, req, &attachments, nil, nil)
	return attachments, err
}
// AttachmentsList retrieves all policy attachments for an org
AttachmentsList retrieves all policy attachments for an org
// AttachmentsList retrieves all policy attachments for an org
func (p *PoliciesClient) AttachmentsList(ctx context.Context, orgID, ownerID, policyID *identity.ID) ([]PolicyAttachmentResult, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	if ownerID != nil {
		v.Set("owner_id", ownerID.String())
	}
	if policyID != nil {
		v.Set("policy_id", policyID.String())
	}
	req, _, err := p.client.NewRequest("GET", "/policy-attachments", v, nil, true)
	if err != nil {
		return nil, err
	}
	attachments := []PolicyAttachmentResult{}
	_, err = p.client.Do(ctx, req, &attachments, nil, nil)
	return attachments, err
}
func ( p * PoliciesClient ) AttachmentsList ( ctx context . Context , orgID , ownerID , policyID * identity . ID ) ( [ ] PolicyAttachmentResult , error ) { v := & url . Values { } if orgID != nil { v . Set ( " " , orgID . String ( ) ) } if ownerID != nil { v . Set ( " " , ownerID . String ( ) ) } if policyID != nil { v . Set ( " " , policyID . String ( ) ) } req , _ , err := p . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } attachments := [ ] PolicyAttachmentResult { } _ , err = p . client . Do ( ctx , req , & attachments , nil , nil ) return attachments , err }
AttachmentsList retrieves all policy attachments for an org
AttachmentsList retrieves all policy attachments for an org