// CreateBucketClass creates a bucket class object or return an existing bucket class object
// This is used by bucket request unit tests
CreateBucketClass creates a bucket class object or return an existing bucket class object
This is used by bucket request unit tests
// CreateBucketClass creates a bucket class object or return an existing bucket class object // This is used by bucket request unit tests
func CreateBucketClass(ctx context.Context, client bucketclientset.Interface, bc *types.BucketClass) (*types.BucketClass, error) {
	bc, err := client.ObjectstorageV1alpha1().BucketClasses().Create(ctx, bc, metav1.CreateOptions{})
	if (err != nil) && apierrors.IsAlreadyExists(err) {
		bc, err = client.ObjectstorageV1alpha1().BucketClasses().Get(ctx, bc.Name, metav1.GetOptions{})
	}
	return bc, err
}
func CreateBucketClass ( ctx context . Context , client bucketclientset . Interface , bc * types . BucketClass ) ( * types . BucketClass , error ) { bc , err := client . ObjectstorageV1alpha1 ( ) . BucketClasses ( ) . Create ( ctx , bc , metav1 . CreateOptions { } ) if ( err != nil ) && apierrors . IsAlreadyExists ( err ) { bc , err = client . ObjectstorageV1alpha1 ( ) . BucketClasses ( ) . Get ( ctx , bc . Name , metav1 . GetOptions { } ) } return bc , err }
CreateBucketClass creates a bucket class object or return an existing bucket class object
This is used by bucket request unit tests
CreateBucketClass creates a bucket class object or return an existing bucket class object This is used by bucket request unit tests