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