func (s *pluginService) CreateTemplateVersion(
	ctx context.Context,
	name string,
	templateOwner string,
	templateName string,
	pluginVersions []*v1alpha1.PluginVersionMapping,
) (templateVersion *v1alpha1.TemplateVersion, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.CreateTemplateVersion(
		ctx,
		&v1alpha1.CreateTemplateVersionRequest{
			Name:           name,
			TemplateOwner:  templateOwner,
			TemplateName:   templateName,
			PluginVersions: pluginVersions,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.TemplateVersion, nil
}
// CreateTemplateVersion creates a new template version.
CreateTemplateVersion creates a new template version.
// CreateTemplateVersion creates a new template version .
func (s *pluginService) CreateTemplateVersion(
	ctx context.Context,
	name string,
	templateOwner string,
	templateName string,
	pluginVersions []*v1alpha1.PluginVersionMapping,
) (templateVersion *v1alpha1.TemplateVersion, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.CreateTemplateVersion(
		ctx,
		&v1alpha1.CreateTemplateVersionRequest{
			Name:           name,
			TemplateOwner:  templateOwner,
			TemplateName:   templateName,
			PluginVersions: pluginVersions,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.TemplateVersion, nil
}
func ( s * pluginService ) CreateTemplateVersion ( ctx context . Context , name string , templateOwner string , templateName string , pluginVersions [ ] * v1alpha1 . PluginVersionMapping , ) ( templateVersion * v1alpha1 . TemplateVersion , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . CreateTemplateVersion ( ctx , & v1alpha1 . CreateTemplateVersionRequest { Name : name , TemplateOwner : templateOwner , TemplateName : templateName , PluginVersions : pluginVersions , } , ) if err != nil { return nil , err } return response . TemplateVersion , nil }
CreateTemplateVersion creates a new template version.
CreateTemplateVersion creates a new template version .