func (k *KeypairsClient) List(ctx context.Context, orgID *identity.ID) ([]KeypairResult, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}

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

	var keypairs []KeypairResult
	_, err = k.client.Do(ctx, req, &keypairs, nil, nil)
	if err != nil {
		return nil, err
	}

	return keypairs, nil
}
// List retrieves relevant keypairs by orgID
List retrieves relevant keypairs by orgID
// List retrieves relevant keypairs by orgID
func (k *KeypairsClient) List(ctx context.Context, orgID *identity.ID) ([]KeypairResult, error) {
	v := &url.Values{}
	if orgID != nil {
		v.Set("org_id", orgID.String())
	}
	req, _, err := k.client.NewRequest("GET", "/keypairs", v, nil, true)
	if err != nil {
		return nil, err
	}
	var keypairs []KeypairResult
	_, err = k.client.Do(ctx, req, &keypairs, nil, nil)
	if err != nil {
		return nil, err
	}
	return keypairs, nil
}
func ( k * KeypairsClient ) List ( ctx context . Context , orgID * identity . ID ) ( [ ] KeypairResult , error ) { v := & url . Values { } if orgID != nil { v . Set ( " " , orgID . String ( ) ) } req , _ , err := k . client . NewRequest ( " " , " " , v , nil , true ) if err != nil { return nil , err } var keypairs [ ] KeypairResult _ , err = k . client . Do ( ctx , req , & keypairs , nil , nil ) if err != nil { return nil , err } return keypairs , nil }
List retrieves relevant keypairs by orgID
List retrieves relevant keypairs by orgID