func (s *pluginService) ListOrganizationPlugins(
	ctx context.Context,
	organization string,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (plugins []*v1alpha1.Plugin, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListOrganizationPlugins(
		ctx,
		&v1alpha1.ListOrganizationPluginsRequest{
			Organization: organization,
			PageSize:     pageSize,
			PageToken:    pageToken,
			Reverse:      reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Plugins, response.NextPageToken, nil
}
// ListOrganizationPlugins lists all plugins for an organization.
ListOrganizationPlugins lists all plugins for an organization.
// ListOrganizationPlugins lists all plugins for an organization .
func (s *pluginService) ListOrganizationPlugins(
	ctx context.Context,
	organization string,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (plugins []*v1alpha1.Plugin, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListOrganizationPlugins(
		ctx,
		&v1alpha1.ListOrganizationPluginsRequest{
			Organization: organization,
			PageSize:     pageSize,
			PageToken:    pageToken,
			Reverse:      reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.Plugins, response.NextPageToken, nil
}
func ( s * pluginService ) ListOrganizationPlugins ( ctx context . Context , organization string , pageSize uint32 , pageToken string , reverse bool , ) ( plugins [ ] * v1alpha1 . Plugin , nextPageToken string , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . ListOrganizationPlugins ( ctx , & v1alpha1 . ListOrganizationPluginsRequest { Organization : organization , PageSize : pageSize , PageToken : pageToken , Reverse : reverse , } , ) if err != nil { return nil , " " , err } return response . Plugins , response . NextPageToken , nil }
ListOrganizationPlugins lists all plugins for an organization.
ListOrganizationPlugins lists all plugins for an organization .