func (r *BlobCfgBlob) Validate() error {
	if (r.RetentionMode == "") != (r.RetentionPeriod == 0) {
		return errors.Errorf("both retention mode and period must be provided when setting blob retention properties")
	}

	if r.RetentionPeriod != 0 && r.RetentionPeriod < 24*time.Hour {
		return errors.Errorf("invalid retention-period, the minimum required is 1-day and there is no maximum limit")
	}

	return nil
}
// Validate validates the blob config parameters.
Validate validates the blob config parameters.
// Validate validates the blob config parameters .
func (r *BlobCfgBlob) Validate() error {
	if (r.RetentionMode == "") != (r.RetentionPeriod == 0) {
		return errors.Errorf("both retention mode and period must be provided when setting blob retention properties")
	}
	if r.RetentionPeriod != 0 && r.RetentionPeriod < 24*time.Hour {
		return errors.Errorf("invalid retention-period, the minimum required is 1-day and there is no maximum limit")
	}
	return nil
}
func ( r * BlobCfgBlob ) Validate ( ) error { if ( r . RetentionMode == " " ) != ( r . RetentionPeriod == 0 ) { return errors . Errorf ( " " ) } if r . RetentionPeriod != 0 && r . RetentionPeriod < 24 * time . Hour { return errors . Errorf ( " " ) } return nil }
Validate validates the blob config parameters.
Validate validates the blob config parameters .