func (p *PoliciesClient) List(ctx context.Context, orgID *identity.ID, name string) ([]PoliciesResult, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	if name != "" {
		v.Set("name", name)
	}

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

	policies := []PoliciesResult{}
	_, err = p.client.Do(ctx, req, &policies, nil, nil)
	return policies, err
}
// List retrieves relevant policiies by orgID and/or name
List retrieves relevant policiies by orgID and/or name
// List retrieves relevant policiies by orgID and / or name
func (p *PoliciesClient) List(ctx context.Context, orgID *identity.ID, name string) ([]PoliciesResult, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	if name != "" {
		v.Set("name", name)
	}
	req, _, err := p.client.NewRequest("GET", "/policies", v, nil, true)
	if err != nil {
		return nil, err
	}
	policies := []PoliciesResult{}
	_, err = p.client.Do(ctx, req, &policies, nil, nil)
	return policies, err
}
func ( p * PoliciesClient ) List ( ctx context . Context , orgID * identity . ID , name string ) ( [ ] PoliciesResult , error ) { v := & url . Values { } if orgID != nil { v . Set ( " " , orgID . String ( ) ) } if name != " " { v . Set ( " " , name ) } req , _ , err := p . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } policies := [ ] PoliciesResult { } _ , err = p . client . Do ( ctx , req , & policies , nil , nil ) return policies , err }
List retrieves relevant policiies by orgID and/or name
List retrieves relevant policiies by orgID and / or name