func (s *organizationService) ListOrganizations(
	ctx context.Context,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (organizations []*v1alpha1.Organization, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListOrganizations(
		ctx,
		&v1alpha1.ListOrganizationsRequest{
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Organizations, response.NextPageToken, nil
}
// ListOrganizations lists all organizations.
ListOrganizations lists all organizations.
// ListOrganizations lists all organizations .
func (s *organizationService) ListOrganizations(
	ctx context.Context,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (organizations []*v1alpha1.Organization, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListOrganizations(
		ctx,
		&v1alpha1.ListOrganizationsRequest{
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Organizations, response.NextPageToken, nil
}
func ( s * organizationService ) ListOrganizations ( ctx context . Context , pageSize uint32 , pageToken string , reverse bool , ) ( organizations [ ] * v1alpha1 . Organization , nextPageToken string , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . ListOrganizations ( ctx , & v1alpha1 . ListOrganizationsRequest { PageSize : pageSize , PageToken : pageToken , Reverse : reverse , } , ) if err != nil { return nil , " " , err } return response . Organizations , response . NextPageToken , nil }
ListOrganizations lists all organizations.
ListOrganizations lists all organizations .