func (s *pluginService) ListTemplateVersions(
	ctx context.Context,
	owner string,
	name string,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (templateVersions []*v1alpha1.TemplateVersion, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListTemplateVersions(
		ctx,
		&v1alpha1.ListTemplateVersionsRequest{
			Owner:     owner,
			Name:      name,
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.TemplateVersions, response.NextPageToken, nil
}
// ListTemplateVersions lists all the template versions available for the specified template.
ListTemplateVersions lists all the template versions available for the specified template.
// ListTemplateVersions lists all the template versions available for the specified template .
func (s *pluginService) ListTemplateVersions(
	ctx context.Context,
	owner string,
	name string,
	pageSize uint32,
	pageToken string,
	reverse bool,
) (templateVersions []*v1alpha1.TemplateVersion, nextPageToken string, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListTemplateVersions(
		ctx,
		&v1alpha1.ListTemplateVersionsRequest{
			Owner:     owner,
			Name:      name,
			PageSize:  pageSize,
			PageToken: pageToken,
			Reverse:   reverse,
		},
	)
	if err != nil {
		return nil, "", err
	}
	return response.TemplateVersions, response.NextPageToken, nil
}
func ( s * pluginService ) ListTemplateVersions ( ctx context . Context , owner string , name string , pageSize uint32 , pageToken string , reverse bool , ) ( templateVersions [ ] * v1alpha1 . TemplateVersion , nextPageToken string , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . ListTemplateVersions ( ctx , & v1alpha1 . ListTemplateVersionsRequest { Owner : owner , Name : name , PageSize : pageSize , PageToken : pageToken , Reverse : reverse , } , ) if err != nil { return nil , " " , err } return response . TemplateVersions , response . NextPageToken , nil }
ListTemplateVersions lists all the template versions available for the specified template.
ListTemplateVersions lists all the template versions available for the specified template .